vibbits / nis2pyr

Python utility and library for converting Nikon .nd2 files to pyramidal OME TIFF.
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

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

Open 6884 opened 1 year ago

6884 commented 1 year ago

this happened both:

  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.