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

Version of python being used ? #27

Closed
NitinAggarwal1 opened this issue Jan 8, 2024 · 4 comments
Closed

Version of python being used ? #27

NitinAggarwal1 opened this issue Jan 8, 2024 · 4 comments

Comments

@NitinAggarwal1
Copy link

Some dependant library is failing. Please specify the version you are using .

ImportError: cannot import name 'Iterator' from 'typing_extensions' (/opt/conda/lib/python3.10/site-packages/typing_extensions.py)

@timothepearce
Copy link

I tried Python 3.11 and 3.10, and they both worked. Your problems seem related to your conda env; the typing module has been available since Python 3.5.

@NitinAggarwal1
Copy link
Author

Any working solution to the typing module problems in conda you can refer.

@bclavie
Copy link
Owner

bclavie commented Jan 8, 2024

Hey!

Thanks @timothepearce for answering. RAGatouille supports >=3.9, I'll update the README soon to make it clearer.

The issue you're having is somewhat common with conda, there's a lot of similar issues all over GitHub (e.g. a similar one here tiangolo/fastapi#9808).

The issue seems to be that there can be conflicting versions of typing_extensions installed at the system level & in the conda env, and also by pypi, or by conda. This is compounded because the library is sometimes called typing_extensions or typing-extensions, but is always imported via from typing_extensions [...]. I'll eventually try to see if I can figure out a way for it to be force-installed when installing RAGatouille.

I think for now this should solve your issue (one of the uninstall might fail, don't worry about it!):

pip uninstall typing_extensions
pip uninstall typing-extensions
pip install --upgrade typing-extensions

@mlkorra
Copy link

mlkorra commented Jan 31, 2024

@bclavie can you update the README with minimum python version required to setup RAGatouille, I was using 3.8.10 and had trouble installing it and found the python requirement here.

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

4 participants