-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Crashes if pip-upgrader exists in requirements.txt #4
Comments
I have it in the requirements and it works. |
Ah, the problem was that I generated the file with
crashes.
works. |
Still wierd, it shouldn't crash. |
I'm going to release a fix for it anyway. |
Could you reproduce the bug? For some reason
produces an empty list. Adding a guard clause before running |
Released version |
I cannot reproduce it 😞 |
I can't reproduce it on my laptop at home either :/ I.e., both versions worked fine with |
Cool, thanks. If it breaks at work, it should print the problematic package and continue. |
The problematic package is pip-upgrade, in my venv at work. I've done some digging and it seems the line
produces an empty list for the following response.content string
I'm no regex guru, but I think the problem is that the html blob only refers to pip_upgrader, when the Here's my
I can reproduce it by running the following commands
|
Why this doesn't happen on my laptop, or for you at all, I cannot say. |
I think it's because at work you have a custom package index (artifact) configured in After upgrading pip-upgrade (use |
Yes, you are correct; that worked with no issue. At work we should generally go through the custom index (which should pull requested packages from PyPI if they don't exist). In other words, do you have any idea why the custom index might cause the issue? If not, that's OK. The workaround is simple enough that I can use it instead. But a fix would be nice, because unless it's some kind of misconfiguration of the index on our side, others might encounter the problem as well. |
You're right, right now the upgrader does not fallback to pypi when a package is not found. To be fixed in next release 😉 |
The solution for this issue is not complicated, but I need to install artifactory to test it properly :) |
Do you know what Artifactory is? It's a commercial paid for product. I'm not sure you need Artifactory to test the issue, but there's a free trial here: Maybe a regular private package index would be enough to test it, without having to deal with Artifactory. |
You might not want to support running pip-upgrader on itself, but I don't think the app should crash because someone has put it in
requirements.txt
.The text was updated successfully, but these errors were encountered: