Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850916 - dev-python/ipython-8.2.0 No module named setupbase
Summary: dev-python/ipython-8.2.0 No module named setupbase
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-10 05:33 UTC by Peter Penkala
Modified: 2022-06-10 12:44 UTC (History)
2 users (show)

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


Attachments
emerge --info '=dev-python/ipython-8.2.0::gentoo' (file_850916.txt,6.43 KB, text/plain)
2022-06-10 05:35 UTC, Peter Penkala
Details
emerge -pqv '=dev-python/ipython-8.2.0::gentoo' (file_850916.txt,374 bytes, text/plain)
2022-06-10 05:36 UTC, Peter Penkala
Details
build.log (file_850916.txt,4.24 KB, text/plain)
2022-06-10 05:37 UTC, Peter Penkala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Penkala gentoo-dev 2022-06-10 05:33:32 UTC
During an emerge of jupyterlab, ipython fails.

Reproducible: Always

Steps to Reproduce:
1. emerge ipython as a dependency of jupyterlab
2. also with emerge --resume
Actual Results:  
No special steps other than setting ~amd64 for some packages as required by emerge.


This is from within a chroot for building binary packages.

A setupbase.py can be found in the build directory: work/ipython-8.2.0/setupbase.py

emerge -pqv '=dev-python/ipython-8.2.0::gentoo':	
!!! It seems /run is not mounted. Process management may malfunction.
[ebuild  N    ] dev-python/ipython-8.2.0  USE="smp -doc -examples -matplotlib -nbconvert -notebook -qt5 -test" PYTHON_TARGETS="python3_8 python3_9 -python3_10"
[ebuild  N    ] dev-python/ipykernel-6.13.0  USE="-test" PYTHON_TARGETS="python3_8 python3_9 -python3_10"
[ebuild  N    ] dev-python/ipyparallel-7.1.0  USE="-test" PYTHON_TARGETS="python3_8 python3_9 -python3_10"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 05:34:59 UTC
Please include the full build.log and emerge --info.
Comment 2 Peter Penkala gentoo-dev 2022-06-10 05:35:33 UTC
Created attachment 783794 [details]
emerge --info '=dev-python/ipython-8.2.0::gentoo'
Comment 3 Peter Penkala gentoo-dev 2022-06-10 05:36:46 UTC
Created attachment 783797 [details]
emerge -pqv '=dev-python/ipython-8.2.0::gentoo'
Comment 4 Peter Penkala gentoo-dev 2022-06-10 05:37:24 UTC
Created attachment 783800 [details]
build.log
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 05:39:36 UTC
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/gpep517", line 4, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/gpep517/__main__.py", line 191, in main
    return func(args)
  File "/usr/lib/python3.8/site-packages/gpep517/__main__.py", line 87, in build_wheel
    wheel_name = backend.build_wheel(args.wheel_dir, args.config_json)
  File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 244, in build_wheel
    return self._build_with_temp_dir(['bdist_wheel'], '.whl',
  File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
    self.run_setup()
  File "/usr/lib/python3.8/site-packages/setuptools/build_meta.py", line 174, in run_setup
    exec(compile(code, __file__, 'exec'), locals())
  File "setup.py", line 66, in <module>
    from setupbase import target_update
ModuleNotFoundError: No module named 'setupbase'
 * ERROR: dev-python/ipython-8.2.0::gentoo failed (compile phase):
 *   Wheel build failed
 *
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 05:53:06 UTC
I can reproduce with 8.4.0 too.  My educated guess is incompatibility introduced in newer version of setuptools.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-06-10 12:14:03 UTC
Ah, it's because we started enforcing the non-legacy setuptools backend.
Comment 8 Larry the Git Cow gentoo-dev 2022-06-10 12:44:37 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fb2dbd04266ab19ebe83a99b4e7c7c8907fdcf4

commit 6fb2dbd04266ab19ebe83a99b4e7c7c8907fdcf4
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-06-10 12:43:12 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-06-10 12:44:33 +0000

    dev-python/ipython: Force legacy setuptools backend
    
    Closes: https://bugs.gentoo.org/850916
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/ipython/ipython-8.2.0.ebuild    | 4 ++++
 dev-python/ipython/ipython-8.3.0-r1.ebuild | 4 ++++
 dev-python/ipython/ipython-8.4.0.ebuild    | 8 ++++++++
 3 files changed, 16 insertions(+)