You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message shows links to python2.7 files, it seems i messed up python versions on the MAC OSX:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
<<<
However i can't figure out how would this happened. I installed python3.10 via homebrew, and add alias to ~/.profile:
alias python=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/python3.10
alias python3=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/python3.10
alias pip=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/pip3.10
alias pip3=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/pip3.10
Checked the python versions in cmd:
$ python -V
Python 3.10.1
$ python3 -V
Python 3.10.11
$ pip3 -V
pip 23.0.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
$ pip -V
pip 23.0.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
Here is the full error message during install:
Collecting basicsr
Using cached basicsr-1.4.2.tar.gz (172 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting addict (from basicsr)
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future (from basicsr)
Using cached future-0.18.3.tar.gz (840 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting lmdb (from basicsr)
Using cached lmdb-1.4.1.tar.gz (881 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.17 (from basicsr)
Using cached numpy-1.24.3-cp310-cp310-macosx_11_0_arm64.whl (13.9 MB)
Collecting opencv-python (from basicsr)
Using cached opencv_python-4.7.0.72-cp37-abi3-macosx_11_0_arm64.whl (32.6 MB)
Collecting Pillow (from basicsr)
Using cached Pillow-9.5.0-cp310-cp310-macosx_11_0_arm64.whl (3.1 MB)
Collecting pyyaml (from basicsr)
Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting requests (from basicsr)
Using cached requests-2.30.0-py3-none-any.whl (62 kB)
Collecting scikit-image (from basicsr)
Using cached scikit_image-0.20.0.tar.gz (22.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [338 lines of output]
+ meson setup /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85 /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/.mesonpy-u0p2tyat/build -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/.mesonpy-u0p2tyat/build/meson-python-native-file.ini
The Meson build system
Version: 1.1.0
Source dir: /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85
Build dir: /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/.mesonpy-u0p2tyat/build
Build type: native build
Project name: scikit-image
Project version: 0.20.0
C compiler for the host machine: cc (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.11)")
C linker for the host machine: cc ld64 650.9
C++ compiler for the host machine: c++ (clang 12.0.5 "Apple clang version 12.0.5 (clang-1205.0.22.11)")
C++ linker for the host machine: c++ ld64 650.9
Host machine cpu family: aarch64
Host machine cpu: aarch64
Compiler for C supports arguments -Wno-unused-function: YES
Library m found: YES
Checking if "-Wl,--version-script" : links: NO
Program cython found: YES (/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/bin/cython)
Program pythran found: YES (/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/bin/pythran)
Program cp found: YES (/bin/cp)
Program python found: YES (/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10)
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Program _build_utils/cythoner.py found: YES (/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py)
Compiler for C++ supports arguments -Wno-cpp: YES
Build targets in project: 58
scikit-image 0.20.0
User defined options
Native files: /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/.mesonpy-u0p2tyat/build/meson-python-native-file.ini
buildtype : release
b_ndebug : if-release
b_vscrt : md
Found ninja-1.11.1.git.kitware.jobserver-1 at /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/normal/bin/ninja
+ /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/normal/bin/ninja
[1/168] Generating 'skimage/feature/_canny_cy.cpython-310-darwin.so.p/_canny_cy.c'.
FAILED: skimage/feature/_canny_cy.cpython-310-darwin.so.p/_canny_cy.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/feature/_canny_cy.pyx skimage/feature/_canny_cy.cpython-310-darwin.so.p/_canny_cy.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
**### File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage**
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[2/168] Generating 'skimage/_shared/transform.cpython-310-darwin.so.p/transform.c'.
FAILED: skimage/_shared/transform.cpython-310-darwin.so.p/transform.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/_shared/transform.pyx skimage/_shared/transform.cpython-310-darwin.so.p/transform.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[3/168] Generating 'skimage/_shared/geometry.cpython-310-darwin.so.p/geometry.c'.
FAILED: skimage/_shared/geometry.cpython-310-darwin.so.p/geometry.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/_shared/geometry.pyx skimage/_shared/geometry.cpython-310-darwin.so.p/geometry.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[4/168] Generating 'skimage/feature/orb_cy.cpython-310-darwin.so.p/orb_cy.c'.
FAILED: skimage/feature/orb_cy.cpython-310-darwin.so.p/orb_cy.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/feature/orb_cy.pyx skimage/feature/orb_cy.cpython-310-darwin.so.p/orb_cy.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[5/168] Generating 'skimage/draw/_draw.cpython-310-darwin.so.p/_draw.c'.
FAILED: skimage/draw/_draw.cpython-310-darwin.so.p/_draw.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/draw/_draw.pyx skimage/draw/_draw.cpython-310-darwin.so.p/_draw.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[6/168] Generating 'skimage/feature/_texture.cpython-310-darwin.so.p/_texture.c'.
FAILED: skimage/feature/_texture.cpython-310-darwin.so.p/_texture.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/feature/_texture.pyx skimage/feature/_texture.cpython-310-darwin.so.p/_texture.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[7/168] Generating 'skimage/_shared/fast_exp.cpython-310-darwin.so.p/fast_exp.c'.
FAILED: skimage/_shared/fast_exp.cpython-310-darwin.so.p/fast_exp.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/_shared/fast_exp.pyx skimage/_shared/fast_exp.cpython-310-darwin.so.p/fast_exp.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[8/168] Generating 'skimage/feature/censure_cy.cpython-310-darwin.so.p/censure_cy.c'.
FAILED: skimage/feature/censure_cy.cpython-310-darwin.so.p/censure_cy.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/feature/censure_cy.pyx skimage/feature/censure_cy.cpython-310-darwin.so.p/censure_cy.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[9/168] Generating 'skimage/feature/corner_cy.cpython-310-darwin.so.p/corner_cy.c'.
FAILED: skimage/feature/corner_cy.cpython-310-darwin.so.p/corner_cy.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/feature/corner_cy.pyx skimage/feature/corner_cy.cpython-310-darwin.so.p/corner_cy.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
[10/168] Generating 'skimage/_shared/interpolation.cpython-310-darwin.so.p/interpolation.c'.
FAILED: skimage/_shared/interpolation.cpython-310-darwin.so.p/interpolation.c
/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py ../../skimage/_shared/interpolation.pyx skimage/_shared/interpolation.cpython-310-darwin.so.p/interpolation.c
Error processing line 1 of /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/_distutils_hack/__init__.py", line 194
f'spec_for_{name}',
^
SyntaxError: invalid syntax
Remainder of file ignored
Error processing line 1 of /private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-build-env-frn31n1r/overlay/lib/python3.10/site-packages/distutils-precedence.pth:
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site.py", line 152, in addpackage
exec line
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'add_shim'
Remainder of file ignored
Traceback (most recent call last):
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 37, in <module>
main()
File "/private/var/folders/gb/_20zxxjd0p318c5gng983b6r0000gp/T/pip-install-g9397n2i/scikit-image_797476e0cf2c43f5b28e6c44cedecf85/skimage/_build_utils/cythoner.py", line 20, in main
sbp.run(
AttributeError: 'module' object has no attribute 'run'
ninja: build stopped: subcommand failed.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The error message shows links to python2.7 files, it seems i messed up python versions on the MAC OSX:
<<<
However i can't figure out how would this happened. I installed python3.10 via homebrew, and add alias to ~/.profile:
alias python=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/python3.10
alias python3=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/python3.10
alias pip=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/pip3.10
alias pip3=/opt/homebrew/Cellar/python@3.10/3.10.11/bin/pip3.10
Checked the python versions in cmd:
$ python -V
Python 3.10.1
$ python3 -V
Python 3.10.11
$ pip3 -V
pip 23.0.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
$ pip -V
pip 23.0.1 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)
Here is the full error message during install:
Collecting basicsr
Using cached basicsr-1.4.2.tar.gz (172 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting addict (from basicsr)
Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future (from basicsr)
Using cached future-0.18.3.tar.gz (840 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting lmdb (from basicsr)
Using cached lmdb-1.4.1.tar.gz (881 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting numpy>=1.17 (from basicsr)
Using cached numpy-1.24.3-cp310-cp310-macosx_11_0_arm64.whl (13.9 MB)
Collecting opencv-python (from basicsr)
Using cached opencv_python-4.7.0.72-cp37-abi3-macosx_11_0_arm64.whl (32.6 MB)
Collecting Pillow (from basicsr)
Using cached Pillow-9.5.0-cp310-cp310-macosx_11_0_arm64.whl (3.1 MB)
Collecting pyyaml (from basicsr)
Using cached PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl (173 kB)
Collecting requests (from basicsr)
Using cached requests-2.30.0-py3-none-any.whl (62 kB)
Collecting scikit-image (from basicsr)
Using cached scikit_image-0.20.0.tar.gz (22.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [338 lines of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Beta Was this translation helpful? Give feedback.
All reactions