-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hi,
Here's output from trying to install the requirements.txt file.
My python version is 3.11.5. numpy seems to install on its own successfully.
Platform: M2 Mac with Ventura 13.4.1.
/usr/local/bin/python3 -m pip install -r ~/pgi_correct/requirements.txt
Collecting attrs==20.1.0 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 1))
Downloading attrs-20.1.0-py2.py3-none-any.whl (49 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.0/49.0 kB 194.6 kB/s eta 0:00:00
Collecting coverage==5.2.1 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 2))
Downloading coverage-5.2.1.tar.gz (694 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 694.1/694.1 kB 233.9 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting importlib-metadata==1.7.0 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 3))
Downloading importlib_metadata-1.7.0-py2.py3-none-any.whl (31 kB)
Collecting iniconfig==1.0.1 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 4))
Downloading iniconfig-1.0.1-py3-none-any.whl (4.2 kB)
Collecting more-itertools==8.5.0 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 5))
Downloading more_itertools-8.5.0-py3-none-any.whl (44 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 44.9/44.9 kB 292.9 kB/s eta 0:00:00
Collecting numpy==1.19.1 (from -r /Users/davidhugh-jones/pgi_correct/requirements.txt (line 6))
Downloading numpy-1.19.1.zip (7.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 258.5 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [58 lines of output]
Running from numpy source directory.
<string>:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py:73: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
required_version = LooseVersion('0.29.21')
/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cython_version) < required_version:
warning: _philox.pyx:19:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
warning: /private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/numpy/__init__.pxd:17:0: The 'DEF' statement is deprecated and will be removed in a future Cython version. Consider using global variables, constants, and in-place literals instead. See https://github.com/cython/cython/issues/4310
Error compiling Cython file:
------------------------------------------------------------
...
self.rng_state.ctr.v[i] = counter[i]
self._reset_state_variables()
self._bitgen.state = <void *>&self.rng_state
self._bitgen.next_uint64 = &philox_uint64
^
------------------------------------------------------------
_philox.pyx:195:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to type 'uint64_t (void *) except? -1 nogil'.
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
Traceback (most recent call last):
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py", line 235, in <module>
main()
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py", line 231, in main
find_process_files(root_dir)
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py", line 222, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py", line 188, in process
processor_function(fromfile, tofile)
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-install-b2ear7da/numpy_14218c892c13452d8f61775c1f1e2c90/tools/cythonize.py", line 77, in process_pyx
subprocess.check_call(
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python3', '-m', 'cython', '-3', '--fast-fail', '-o', '_philox.c', '_philox.pyx']' returned non-zero exit status 1.
Cythonizing sources
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-build-env-4orxtoff/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
self.run_setup()
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-build-env-4orxtoff/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/mr/5c9516m5013_s0fjflvfx6f00000gn/T/pip-build-env-4orxtoff/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 499, in <module>
File "<string>", line 479, in setup_package
File "<string>", line 274, in generate_cython
RuntimeError: Running cythonize 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.
hint: See above for details.
Metadata
Metadata
Assignees
Labels
No labels