Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 789699 - net-libs/libtorrent-rasterbar - Build fails with "ModuleNotFoundError: No module named 'setuptools'"
Summary: net-libs/libtorrent-rasterbar - Build fails with "ModuleNotFoundError: No mod...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-12 15:32 UTC by abbotta4
Modified: 2021-10-29 08:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log for libtorrent-rasterbar (libtorrent-rasterbar-1.2.12.build.log,475.81 KB, text/plain)
2021-05-12 15:34 UTC, abbotta4
Details
emerge --info '=net-libs/libtorrent-rasterbar-1.2.12::gentoo (libtorrent-rasterbar-1.2.12.info,7.19 KB, text/plain)
2021-05-12 15:35 UTC, abbotta4
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abbotta4 2021-05-12 15:32:28 UTC
It looks like the ebuild does not include setuptools as a BDEPEND if the python USE is used

Reproducible: Always

Steps to Reproduce:
1. emerge net-libs/libtorrent-rasterbar-1.2.12
2. The build will fail with the title error in the log
Actual Results:  
The build fails to build libtorrent-rasterbar without the setuptools module

Expected Results:  
Portage should successfully build and install libtorrent-rasterbar

emerging dev-python/setuptools and rebuilding libtorrent-rasterbar yielded success
Comment 1 abbotta4 2021-05-12 15:34:08 UTC
Created attachment 707613 [details]
build.log for libtorrent-rasterbar
Comment 2 abbotta4 2021-05-12 15:35:04 UTC
Created attachment 707616 [details]
emerge --info '=net-libs/libtorrent-rasterbar-1.2.12::gentoo
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-25 00:31:56 UTC
Yeah, we need to add the dependency.

>DISTUTILS_OPTIONAL=manual

means the eclass won't add any dependencies at all. ${PYTHON_DEPS} is needed which we use but you have to manually add setuptools too AFAIK based on how the eclass reads.

May be worth updating the eclass documentation as it's a bit confusing:
>If you enable DISTUTILS_OPTIONAL, you have to set proper dependencies for your package (using ${PYTHON_DEPS}) and to either call distutils-r1 default phase functions or call the build system manually.
Comment 4 Kolhell 2021-10-28 15:04:31 UTC
Just wanted to report I've run into the same issue - have a system I've not updated in some time, encountered this when trying to update from 1.2.6 to 1.2.14.

I was unable to update dev-python/setuptools as suggested due to some dependency nastiness, so I resorted to unmerging this (libtorrent-rasterbar) package as well as the torrent client that depends on it to get my update world moving again.

In case this helps anyone else:
equery depends net-libs/libtorrent-rasterbar
emerge -ca [some bittorrent client as reported by equery]
emerge -ca net-libs/libtorrent-rasterbar
emerge -uUD world

I assume net-libs/libtorrent-rasterbar will build correctly once the rest of my system is up to date, as it did for abbotta4. If not I will report back.
Comment 5 Larry the Git Cow gentoo-dev 2021-10-29 08:58:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c21179d3301d32b52969e4d4e49c4242c98e671

commit 1c21179d3301d32b52969e4d4e49c4242c98e671
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-29 08:56:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-29 08:57:02 +0000

    net-libs/libtorrent-rasterbar: fix setuptools dependency
    
    Bug: https://bugs.gentoo.org/789699
    Signed-off-by: Sam James <sam@gentoo.org>

 ...terbar-1.2.14.ebuild => libtorrent-rasterbar-1.2.14-r1.ebuild} | 8 ++++----
 ...erbar-2.0.4-r2.ebuild => libtorrent-rasterbar-2.0.4-r3.ebuild} | 5 +++++
 2 files changed, 9 insertions(+), 4 deletions(-)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-29 08:58:23 UTC
Thanks for the poke!