Thanks to visit codestin.com
Credit goes to github.com

Skip to content

numpy-py310 version 1.22 does not build MacOS 15.3 #1227

@sth0

Description

@sth0

I get an error while using cython to build. Not sure what the nature of that error is. Something in the file _philox.pyx is not right. Python exceptions are not my expertise to say the least.

Cythonizing sources
Processing numpy/random/_bounded_integers.pxd.in
Processing numpy/random/_philox.pyx
/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py:63: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.version import LooseVersion

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:190:35: Cannot assign type 'uint64_t (*)(void *) except? -1 nogil' to 'uint64_t (*)(void *) noexcept nogil'. Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
Traceback (most recent call last):
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py", line 234, in <module>
    main()
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py", line 230, in main
    find_process_files(root_dir)
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py", line 221, in find_process_files
    process(root_dir, fromfile, tofile, function, hash_db)
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py", line 187, in process
    processor_function(fromfile, tofile)
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/tools/cythonize.py", line 76, in process_pyx
    subprocess.check_call(
  File "/opt/sw/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/sw/bin/python3.10', '-m', 'cython', '-3', '--fast-fail', '-o', '_philox.c', '_philox.pyx']' returned non-zero exit status 1.
Traceback (most recent call last):
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/setup.py", line 454, in <module>
    setup_package()
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/setup.py", line 436, in setup_package
    generate_cython()
  File "/opt/sw/src/fink.build/numpy-py310-1.22.1-1/numpy-1.22.1/setup.py", line 241, in generate_cython
    raise RuntimeError("Running cythonize failed!")
RuntimeError: Running cythonize failed!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions