Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Can't pip install on a new env (without Cython) #94

Open
zachmoshe opened this issue May 19, 2022 · 4 comments
Open

Can't pip install on a new env (without Cython) #94

zachmoshe opened this issue May 19, 2022 · 4 comments

Comments

@zachmoshe
Copy link

I have a project where YouTokenToMe is one of the dependencies and get a No module named 'Cython' when trying to install YouTokenToMe as a dependency.

I saw that setup.cfg uses Cython internally, so it's not a matter of install_requires. pip fails when it starts running the file because Cython doesn't exist.

Obviously a workaround is to just install Cython before in the environement, but that's hacky. I rather have YouTokenToMe declare that it needs Cython. Is that even possible?

@gbeckenkamp
Copy link

Should be fixed by #103

@cdeln
Copy link

cdeln commented Dec 6, 2022

@yutkin Do you have time to take a look at this issue? It's a trivial fix, and it affects downstream package consumers, so a merge is heavily appreciated. Thanks!

@TechInterMezzo
Copy link

This problem is still present for me on Windows 10. It's a pity that this project seems to be abandoned.

@Manamama
Copy link

Manamama commented Jan 5, 2024

Still present in Ubuntu 20

pip show cython
Name: Cython
Version: 3.0.7
Summary: The Cython compiler for writing C extensions in the Python language.
Home-page: https://cython.org/
Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
Author-email: [email protected]
License: Apache-2.0
... 
Requires: 
Required-by: fairseq, TTS

but

        File "/tmp/pip-build-env-gdhr_y3w/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 295, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-gdhr_y3w/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 480, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-gdhr_y3w/overlay/local/lib/python3.10/dist-packages/setuptools/build_meta.py", line 311, in run_setup
          exec(code, locals())
        File "<string>", line 5, in <module>
      ModuleNotFoundError: No module named 'Cython'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

Using its apt version does not help, either.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants