with pip install -e .[dev] after successfully cloning the git repository
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
Error compiling Cython file:
------------------------------------------------------------
...
cdef np.ndarray to_ndarray(self):
cdef np.ndarray ndarray = np.array(self, copy=False)
# Assign our object to the 'base' of the ndarray object
ndarray.base = <PyObject*> self
^
------------------------------------------------------------
nd2/_sdk/picture.pyx:41:15: Assignment to a read-only property
Compiling nd2/_sdk/latest.pyx because it changed.
Compiling nd2/_sdk/v9.pyx because it changed.
Compiling nd2/_sdk/picture.pyx because it changed.
[1/3] Cythonizing nd2/_sdk/latest.pyx
[2/3] Cythonizing nd2/_sdk/picture.pyx
Traceback (most recent call last):
File "/home/sugliano/my-envs/nis2pyr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/home/sugliano/my-envs/nis2pyr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/sugliano/my-envs/nis2pyr/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-4yxxw_lb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-4yxxw_lb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-4yxxw_lb/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 341, in run_setup
exec(code, locals())
File "<string>", line 54, in <module>
File "/tmp/pip-build-env-4yxxw_lb/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1134, in cythonize
cythonize_one(*args)
File "/tmp/pip-build-env-4yxxw_lb/overlay/lib/python3.9/site-packages/Cython/Build/Dependencies.py", line 1301, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: nd2/_sdk/picture.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
this happened both:
pip install nis2pyx
pip install -e .[dev]
after successfully cloning the git repository