Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
PyPI package not shown in search results accessible via url
-
Today I was promoting PyPI packages and could not find one of them via web interface.
websocket-client was not shown in search results but I could access via this url: https://proget/feeds/PyPI/websocket-client/
Just letting you know.
Important detail: server has limited internet access and every subdomain needs to be whitelisted explicitly.
Any ideas?
Searching for websocket-client in the feed (connected to pypi.org) returned this:
-
I'm not very familiar with PyPi packages, but I know there are some oddities with
-
and_
, and that they are sometimes supposed to be treated the same, and sometimes not. We don't totally understand all the rules, to be honest (even after reading PEP503 specifications).In this case, the package is actually
websocket_client
, notwebsocket-client
.See: https://pypi.org/project/websocket_client/
When you search for
websocket_client
in ProGet, it shows up, as expected.
-
@atripp Thanks for the info. I didn't know that little detail about PyPI.
Apparently https://pypi.org/project/websocket-client/ just redirects to https://pypi.org/project/websocket_client/
Also pip install does not distinguish
-
and_
- you can usewebsocket-client
andwebsocket_client
interchangeably to install/remove that package.Looks like ProGet shouldn't distinguish them either for PyPI feeds.
Maybe worth saying that I have two installations with different versions (by accident) of ProGet.
Did not have that issue in 5.2.20, only in 5.2.19.
So, maybe it is already fixed in >= 5.2.20.
-
Unfortunately we didn't totally understand that detail either when implementing the feed, either... so unfortunately it's not trivial to fix.
We'd like to gauge the impact of not changing it; aside from this search odditiy, was there any other problems? Are packages not installing?
-
@atripp Sure. Packages are installing just fine. Even this works:
pip install weboscket-client pip uninstall websocket_client
-
Interesting; I know it's not ideal, but it works, and it may only be a slight inconvenience at best, since not many search for packages from the UI, I think.
https://github.com/Inedo/inedo-docs/blob/master/ProGet/feeds/pypi.md
If anyone finds more issues with this, please let us know and we can consider investing in a proper fix.