Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cython.Compiler.Errors.CompileError: nd2/_sdk/picture.pyx #8

Open
6884 opened this issue Aug 16, 2023 · 0 comments
Open

Cython.Compiler.Errors.CompileError: nd2/_sdk/picture.pyx #8

6884 opened this issue Aug 16, 2023 · 0 comments

Comments

@6884
Copy link

6884 commented Aug 16, 2023

this happened both:

  • with pip install nis2pyx
  • 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant