-
Notifications
You must be signed in to change notification settings - Fork 3k
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
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
with uvicorn-0.2.1.tar.gz
#10856
Comments
The error is because Maybe that's a result of #10655? |
@jtremesay-sereema It's related to the version of uvicorn, uvicorn==0.2.1 fails with: This is fixed in uvicorn>=0.2.2. Also consider the latest uvicorn is at 0.17.1 now, even 0.2.2 is quite a bit behind. |
@malkir As you can see in the requirements.txt, we don’t pin the version of the dependencies. When using pip 21.3.1 (
|
What output do you get if you require |
@pfmoore I don’t see the error if I use
|
@jtremesay-sereema You are giving pip an incredibly large search space of requirements to resolve which is why it's taking so long, you were lucky Pip was able previously was able to search these requirements so quickly. I will take a look to see if there's something that can be optimized on Pip's side but in the mean time you should tighten your requirements. I suggest that if no one else is using your package as a dependency you take your current requirements file and look at your current successful installation and modify it to
If others are using your package as a dependency you will need to take a more cautious approach bout how you tighten requirements but in general it probably makes sense to see where pip is saying One thing I also notice as well as pip no longer being able to consider older packages than unicorn 0.2.3 (unless you add |
I do not love the solution, but it resolve my problem, so I will go with it. |
FileNotFoundError: [Errno 2] No such file or directory: 'README.md'
with uvicorn-0.2.1.tar.gz
Description
When we try to install the dependencies of our project with pip
22.0.2
, the following error occur: "Encountered error while generating package metadata".Expected behavior
We expected to have our dependencies installed without error, like with pip
21.3.1
and priors.pip version
22.0.2
Python version
3.9.10
OS
Mac OS X 12.2 & Debian Bullseye
How to Reproduce
Install packages from the following requirements.txt:
Output
The text was updated successfully, but these errors were encountered: