-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Hello,
I get this error while installing using PIP :
Collecting git+https://github.com/dnidever/prometheus
Cloning https://github.com/dnidever/prometheus to /private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-req-build-t9ik6f4o
Running command git clone --filter=blob:none --quiet https://github.com/dnidever/prometheus /private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-req-build-t9ik6f4o
Resolved https://github.com/dnidever/prometheus to commit 77120a8
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting astropy (from prometheus==1.0.22)
Using cached astropy-7.0.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (10 kB)
Collecting scipy (from prometheus==1.0.22)
Using cached scipy-1.15.1-cp313-cp313-macosx_14_0_arm64.whl.metadata (61 kB)
Collecting extension_helpers (from prometheus==1.0.22)
Using cached extension_helpers-1.2.0-py3-none-any.whl.metadata (2.2 kB)
Collecting photutils (from prometheus==1.0.22)
Using cached photutils-2.1.0-cp313-cp313-macosx_11_0_arm64.whl.metadata (7.0 kB)
Collecting sep (from prometheus==1.0.22)
Using cached sep-1.2.1.tar.gz (72 kB)
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
╰─> [180 lines of output]
/private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-build-env-_wcmd7wg/overlay/lib/python3.13/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-install-bs50vf_c/sep_dc1b33cfe6b84134ac3acba5c8ec37c2/sep.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
# Source Extraction
# This needs to match the result from extract
cdef packed struct Object:
np.float64_t thresh
np.int_t npix
^
------------------------------------------------------------
sep.pyx:555:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# This needs to match the result from extract
cdef packed struct Object:
np.float64_t thresh
np.int_t npix
np.int_t tnpix
^
------------------------------------------------------------
sep.pyx:556:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
# This needs to match the result from extract
cdef packed struct Object:
np.float64_t thresh
np.int_t npix
np.int_t tnpix
np.int_t xmin
^
------------------------------------------------------------
sep.pyx:557:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
cdef packed struct Object:
np.float64_t thresh
np.int_t npix
np.int_t tnpix
np.int_t xmin
np.int_t xmax
^
------------------------------------------------------------
sep.pyx:558:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t thresh
np.int_t npix
np.int_t tnpix
np.int_t xmin
np.int_t xmax
np.int_t ymin
^
------------------------------------------------------------
sep.pyx:559:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.int_t npix
np.int_t tnpix
np.int_t xmin
np.int_t xmax
np.int_t ymin
np.int_t ymax
^
------------------------------------------------------------
sep.pyx:560:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t cpeak
np.float64_t peak
np.float64_t errx2
np.float64_t erry2
np.float64_t errxy
np.int_t xcpeak
^
------------------------------------------------------------
sep.pyx:579:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t peak
np.float64_t errx2
np.float64_t erry2
np.float64_t errxy
np.int_t xcpeak
np.int_t ycpeak
^
------------------------------------------------------------
sep.pyx:580:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t errx2
np.float64_t erry2
np.float64_t errxy
np.int_t xcpeak
np.int_t ycpeak
np.int_t xpeak
^
------------------------------------------------------------
sep.pyx:581:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t erry2
np.float64_t errxy
np.int_t xcpeak
np.int_t ycpeak
np.int_t xpeak
np.int_t ypeak
^
------------------------------------------------------------
sep.pyx:582:4: 'int_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
np.float64_t errxy
np.int_t xcpeak
np.int_t ycpeak
np.int_t xpeak
np.int_t ypeak
np.int_t flag
^
------------------------------------------------------------
sep.pyx:583:4: 'int_t' is not a type identifier
Compiling sep.pyx because it changed.
[1/1] Cythonizing sep.pyx
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
~~~~^^
File "/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/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.13/lib/python3.13/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/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-build-env-_wcmd7wg/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 377, in prepare_metadata_for_build_wheel
self.run_setup()
~~~~~~~~~~~~~~^^
File "/private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-build-env-_wcmd7wg/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 38, in <module>
File "/private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-build-env-_wcmd7wg/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
~~~~~~~~~~~~~^^^^^^^
File "/private/var/folders/32/jjnlg6zj25j3fgl7p3r_0hd80000gn/T/pip-build-env-_wcmd7wg/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sep.pyx
[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.
pierre-yveslechapelain@MacBook-Pro-de-pierre-yves prometheus %