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
I have an x64 M1 Mac. Conda does not support python 3.7 so i had to use 3.9. While trying to run install -r requirements.txt, i run into the following issue. I have tried everything, from google colab to trying to change versions manually for compatibility to trying to individually install packages and debugging, which lead to "Unexpectedly found an instance of type ``. Expected a symbolic tensor instance." where i stopped. Now im trying to simply get it to run from the instructions given and here is the error on trying to install requirements.txt:
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [56 lines of output]
Running from numpy source directory.
:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
required_version = LooseVersion('0.29.14')
/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py:77: 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 cython/cython#4310
warning: /private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/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 cython/cython#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'
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
Traceback (most recent call last):
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py", line 238, in <module>
main()
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py", line 234, in main
find_process_files(root_dir)
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py", line 225, in find_process_files
process(root_dir, fromfile, tofile, function, hash_db)
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py", line 191, in process
processor_function(fromfile, tofile)
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py", line 80, in process_pyx
subprocess.check_call(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.10/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.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-build-env-rpd6qwtz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 396, in prepare_metadata_for_build_wheel
self.run_setup()
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-build-env-rpd6qwtz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 507, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-build-env-rpd6qwtz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 488, in <module>
File "<string>", line 469, in setup_package
File "<string>", line 275, 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.
The text was updated successfully, but these errors were encountered:
I have an x64 M1 Mac. Conda does not support python 3.7 so i had to use 3.9. While trying to run install -r requirements.txt, i run into the following issue. I have tried everything, from google colab to trying to change versions manually for compatibility to trying to individually install packages and debugging, which lead to "Unexpectedly found an instance of type ``. Expected a symbolic tensor instance." where i stopped. Now im trying to simply get it to run from the instructions given and here is the error on trying to install requirements.txt:
Collecting numpy==1.18.5
Using cached numpy-1.18.5.zip (5.4 MB)
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
╰─> [56 lines of output]
Running from numpy source directory.
:461: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py:75: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
required_version = LooseVersion('0.29.14')
/private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/tools/cythonize.py:77: 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 cython/cython#4310
warning: /private/var/folders/4b/yczhj_js0yn8y3pq6m3bpsmc0000gn/T/pip-install-0cch7rib/numpy_434c6691510b43c38e4e1b135e70c0c1/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 cython/cython#4310
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.
The text was updated successfully, but these errors were encountered: