Created
February 12, 2021 15:35
-
-
Save jonha892/b23c09238798273d100a5a8e6eb0b1de to your computer and use it in GitHub Desktop.
Poetry error while building numpy wheel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ackage operations: 2 installs, 0 updates, 0 removals | |
• Installing numpy (1.20.1): Failed | |
EnvCommandError | |
Command ['/Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/bin/pip', 'install', '--no-deps', 'file:///Users/jonas/Library/Caches/pypoetry/artifacts/47/bd/1c/2f9ac5fd7d6fbd8eb2afaa2e36b49585d11d77ef1733f501b3e2b3b8ed/numpy-1.20.1.zip'] errored with the following return code 1, and output: | |
Processing /Users/jonas/Library/Caches/pypoetry/artifacts/47/bd/1c/2f9ac5fd7d6fbd8eb2afaa2e36b49585d11d77ef1733f501b3e2b3b8ed/numpy-1.20.1.zip | |
Installing build dependencies: started | |
Installing build dependencies: finished with status 'done' | |
Getting requirements to build wheel: started | |
Getting requirements to build wheel: finished with status 'done' | |
Preparing wheel metadata: started | |
Preparing wheel metadata: finished with status 'done' | |
Building wheels for collected packages: numpy | |
Building wheel for numpy (PEP 517): started | |
Building wheel for numpy (PEP 517): still running... | |
Building wheel for numpy (PEP 517): still running... | |
Building wheel for numpy (PEP 517): finished with status 'error' | |
ERROR: Command errored out with exit status 1: | |
command: /Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/bin/python /Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/tmp1jc8ofls | |
cwd: /private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-req-build-vkwqvdkx | |
Complete output (2153 lines): | |
writing manifest file 'numpy.egg-info/SOURCES.txt' | |
Copying numpy.egg-info to build/bdist.macosx-11-x86_64/wheel/numpy-1.20.1-py3.9.egg-info | |
running install_scripts | |
Traceback (most recent call last): | |
File "/Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module> | |
main() | |
File "/Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main | |
json_out['return_val'] = hook(**hook_input['kwargs']) | |
File "/Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/lib/python3.9/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel | |
return _build_backend().build_wheel(wheel_directory, config_settings, | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 211, in build_wheel | |
return self._build_with_temp_dir(['bdist_wheel'], '.whl', | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 197, in _build_with_temp_dir | |
self.run_setup() | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 248, in run_setup | |
super(_BuildMetaLegacyBackend, | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 142, in run_setup | |
exec(compile(code, __file__, 'exec'), locals()) | |
File "setup.py", line 513, in <module> | |
setup_package() | |
File "setup.py", line 505, in setup_package | |
setup(**metadata) | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-req-build-vkwqvdkx/numpy/distutils/core.py", line 169, in setup | |
return old_setup(**new_attr) | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 165, in setup | |
return distutils.core.setup(**attrs) | |
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup | |
dist.run_commands() | |
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands | |
self.run_command(cmd) | |
File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command | |
cmd_obj.run() | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 328, in run | |
impl_tag, abi_tag, plat_tag = self.get_tag() | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 252, in get_tag | |
plat_name = get_platform(self.bdist_dir) | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 48, in get_platform | |
result = calculate_macosx_platform_tag(archive_root, result) | |
File "/private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-build-env-d1qwcmfi/overlay/lib/python3.9/site-packages/wheel/macosx_libfile.py", line 356, in calculate_macosx_platform_tag | |
assert len(base_version) == 2 | |
AssertionError | |
########### EXT COMPILER OPTIMIZATION ########### | |
Platform : | |
Architecture: x64 | |
Compiler : clang | |
CPU baseline : | |
Requested : 'min' | |
Enabled : SSE SSE2 SSE3 | |
Flags : -msse -msse2 -msse3 | |
Extra checks: none | |
CPU dispatch : | |
Requested : 'max -xop -fma4' | |
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL | |
Generated : | |
: | |
SSE41 : SSE SSE2 SSE3 SSSE3 | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 | |
Extra checks: none | |
Detect : SSE SSE2 SSE3 SSSE3 SSE41 | |
: numpy/core/src/umath/_umath_tests.dispatch.c | |
: | |
SSE42 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 | |
Extra checks: none | |
Detect : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 | |
: build/src.macosx-11-x86_64-3.9/numpy/core/src/_simd/_simd.dispatch.c | |
: | |
AVX2 : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mavx2 | |
Extra checks: none | |
Detect : AVX F16C AVX2 | |
: numpy/core/src/umath/_umath_tests.dispatch.c | |
: | |
(FMA3 AVX2) : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 | |
Extra checks: none | |
Detect : AVX F16C FMA3 AVX2 | |
: build/src.macosx-11-x86_64-3.9/numpy/core/src/_simd/_simd.dispatch.c | |
: | |
AVX512F : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f | |
Extra checks: AVX512F_REDUCE | |
Detect : AVX512F | |
: build/src.macosx-11-x86_64-3.9/numpy/core/src/_simd/_simd.dispatch.c | |
: | |
AVX512_SKX : SSE SSE2 SSE3 SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD | |
Flags : -msse -msse2 -msse3 -mssse3 -msse4.1 -mpopcnt -msse4.2 -mavx -mf16c -mfma -mavx2 -mavx512f -mavx512cd -mavx512vl -mavx512bw -mavx512dq | |
Extra checks: AVX512BW_MASK AVX512DQ_MASK | |
Detect : AVX512_SKX | |
: build/src.macosx-11-x86_64-3.9/numpy/core/src/_simd/_simd.dispatch.c | |
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-req-build-vkwqvdkx/build/temp.macosx-11-x86_64-3.9/ccompiler_opt_cache_ext.py | |
########### CLIB COMPILER OPTIMIZATION ########### | |
Platform : | |
Architecture: x64 | |
Compiler : clang | |
CPU baseline : | |
Requested : 'min' | |
Enabled : SSE SSE2 SSE3 | |
Flags : -msse -msse2 -msse3 | |
Extra checks: none | |
CPU dispatch : | |
Requested : 'max -xop -fma4' | |
Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL | |
Generated : none | |
CCompilerOpt._cache_write[796] : write cache to path -> /private/var/folders/bm/nwnp3f9s3tz56czhthmr9gl80000gn/T/pip-req-build-vkwqvdkx/build/temp.macosx-11-x86_64-3.9/ccompiler_opt_cache_clib.py | |
---------------------------------------- | |
ERROR: Failed building wheel for numpy | |
Failed to build numpy | |
ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly | |
WARNING: You are using pip version 20.2.2; however, version 21.0.1 is available. | |
You should consider upgrading via the '/Users/jonas/Library/Caches/pypoetry/virtualenvs/poetry_test-rFVFuUY1-py3.9/bin/python -m pip install --upgrade pip' command. | |
at ~/.poetry/lib/poetry/utils/env.py:1074 in _run | |
1070│ output = subprocess.check_output( | |
1071│ cmd, stderr=subprocess.STDOUT, **kwargs | |
1072│ ) | |
1073│ except CalledProcessError as e: | |
→ 1074│ raise EnvCommandError(e, input=input_) | |
1075│ | |
1076│ return decode(output) | |
1077│ | |
1078│ def execute(self, bin, *args, **kwargs): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment