Skip to content

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

Description

@6884

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions