-
Notifications
You must be signed in to change notification settings - Fork 105
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
pip: python generator produces empty sources #265
Comments
I investigated a bit this issue. The minimal reproducer is a
In order to remove
pip complains about the dependencies not being pinned because the hashes option is: "Require a hash to check each requirement against, for repeatable installs".
would be enough to fix Alternatively you should avoid using the hashes altogether, e.g.:
Regarding If I got all the info correctly, I don't think there is much that could be done in |
hm. well. I think having the pip generator produce an empty file is suboptimal, at least. So I believe that there is at least something, that could be done. Are you saying that the pip generator calls out to "pip3 download" which in turn errors out? Would it help to propagate this error? And am I understanding it correctly that a full list of dependencies with their hashes makes things work? How do you generate such full list then? Maybe that information can be given back to the user. |
Yes definitely. A more clear error should definitely help.
Yes, and In your example though it seems like This is another minimal reproducer for the specific issue that you reported:
At the end of the file we will have the following warning:
So let's use
This time setuptools is included in the requirements.txt output and no warnings are generated. Then if we launch flatpak-pip-generator:
In the generated |
If pip fails to download, the generated sources file is empty and, arguably, useless. Instead of silently generating an empty file, the error is propagated now. The root cause appears to be a bug in pip. flatpak#265
FTR the upstream issue with pip seems to be pypa/pip#9644 |
If pip fails to download, the generated sources file is empty and, arguably, useless. Instead of silently generating an empty file, the error is propagated now. The root cause appears to be a bug in pip. flatpak#265
If pip fails to download, the generated sources file is empty and, arguably, useless. Instead of silently generating an empty file, the error is propagated now. The root cause appears to be a bug in pip. flatpak#265
If pip fails to download, the generated sources file is empty and, arguably, useless. Instead of silently generating an empty file, the error is propagated now. The root cause appears to be a bug in pip. #265
I run the python generator against this requirements file: https://github.com/gnome-keysign/gnome-keysign/blob/1c5b04ac0b265491ab65b651e3bbbe0f4a310a18/requirements.txt ) and it produces empty sources:
I see the error there, but I remember that setuptools requires some special care. Maybe it's not f-p-generator who ought to take that special care. I'll happily forward this to autobahn, if necessary.
The text was updated successfully, but these errors were encountered: