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

Error in requirements.txt file #246

Open
Devasy23 opened this issue Mar 23, 2024 · 5 comments
Open

Error in requirements.txt file #246

Devasy23 opened this issue Mar 23, 2024 · 5 comments

Comments

@Devasy23
Copy link
Contributor

Describe the bug
When attempting to install dependencies using pip, the following error occurs:

INFO: pip is looking at multiple versions of fastapi to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 20) and typing_extensions==4.7.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested typing_extensions==4.7.1
    fastapi 0.109.1 depends on typing-extensions>=4.8.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

To Reproduce

  1. Run pip install -r requirements.txt with the provided requirements.txt file.
  2. Observe the error message stating the conflict between the versions of fastapi and typing_extensions.

Expected behavior
The dependencies should be installed without any conflict, allowing the project to be set up successfully.

Additional context
This issue arises due to conflicting dependencies between fastapi and typing_extensions. While the user specifies typing_extensions==4.7.1, fastapi version 0.109.1 requires typing-extensions version greater than or equal to 4.8.0.

Potential Solutions

  • Loosen the range of package versions specified in requirements.txt.
  • Remove package versions to allow pip to attempt to solve the dependency conflict automatically.

This issue affects the compatibility and stability of the project setup and requires resolution to proceed with the installation of dependencies.

image

@srbhr
Copy link
Owner

srbhr commented Mar 25, 2024

Let me check this out

@Sean-Miningah
Copy link

I am experiencing the same I created my environment using python -m venv env

@srbhr
Copy link
Owner

srbhr commented Mar 25, 2024

@Sean-Miningah thanks for confirming. Are you working on a fix for this?

@Sean-Miningah
Copy link

@srbhr No, i am not. It is my first time setting up the project. I am following instructions when i encountered this.I tried to manually change the typing extensions version, this resulted in more incompatabilities with other packages. Is there a preferred way to setup on linux.

@srbhr
Copy link
Owner

srbhr commented Mar 25, 2024

Okay @Sean-Miningah I'm going to raise a PR for this.

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

3 participants