Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    6 Posts 2 Posters 18 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      fbiryukov_8162
      last edited by fbiryukov_8162

      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:
      Screenshot_2020-01-03 Browse PyPI Feed DevPyPI.png

      1 Reply Last reply Reply Quote 1
      • atrippA Offline
        atripp inedo-engineer
        last edited by

        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, not websocket-client.

        See: https://pypi.org/project/websocket_client/

        When you search for websocket_client in ProGet, it shows up, as expected.

        F 1 Reply Last reply Reply Quote 1
        • F Offline
          fbiryukov_8162 @atripp
          last edited by fbiryukov_8162

          @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 use websocket-client and websocket_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.

          1 Reply Last reply Reply Quote 1
          • atrippA Offline
            atripp inedo-engineer
            last edited by

            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?

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              fbiryukov_8162 @atripp
              last edited by

              @atripp Sure. Packages are installing just fine. Even this works:

              pip install weboscket-client
              pip uninstall websocket_client
              
              1 Reply Last reply Reply Quote 0
              • atrippA Offline
                atripp inedo-engineer
                last edited by

                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.

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1 / 1
                • First post
                  Last post
                Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation