omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Stash: pip install: no download

    Pythonista
    3
    8
    5564
    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.
    • upwart
      upwart last edited by

      I am running into a strange problem after my first steps into submitting a package in PyPI.
      I had a 2.2.0 version of mypackage, which I had properly with stash under Pythonista.
      But then I decided to remove the package from PyPI all together. And I manually deleted the files from the site-packages directory on the iPad.
      Unfortunately, PyPI does not allow me to upload to the same version number, so I uploaded a version 2.2.0.0 version.
      And I removed the remains of mypackage with stash.
      But, now, when I say pip install mypackage, it reports that the 2.2.0 version can't be found.
      And when I give the pip versions mypackage, I get 2.2.0 instead of 2.2.0.0 .

      It looks like stash (or pip, or ...) keeps track of the previous version and thus prevents me from uploading the new version.

      Under Windows, I have no problem running pip install mypackage after my manouevres with PyPI.
      Also, the web version of PyPI only shows 2.2.0.0 and nothing anymore about 2.2.0 .

      Any idea what to do about it or at least explain this strange behaviour?

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        There was recently a bug report on this in stash. Seems we are using an older xmlrpc rather than json interface to pypi.

        1 Reply Last reply Reply Quote 0
        • zrzka
          zrzka last edited by

          Yup, read it here https://github.com/ywangd/stash/issues/264 That's the reason why I removed PyPI package and related files from Blacka Mamba now. Will gladly add it back when it will work reliably. The new version is available after ~24h since upload, sometimes later. Rest works perfectly. Except pip update ..., it removes package and the crashes.

          1 Reply Last reply Reply Quote 0
          • upwart
            upwart last edited by

            So, is there anyway to reset ?

            1 Reply Last reply Reply Quote 0
            • zrzka
              zrzka last edited by

              @upwart reset what?

              1 Reply Last reply Reply Quote 0
              • upwart
                upwart last edited by

                Reset or forget the wrong version in Stash

                1 Reply Last reply Reply Quote 0
                • zrzka
                  zrzka last edited by

                  Following command uninstalls package and/or removes it from local registry:

                  pip remove your-pkg-name

                  1 Reply Last reply Reply Quote 0
                  • zrzka
                    zrzka last edited by zrzka

                    @upwart pip fixes were merged to dev branch, if you'd like to test, you can ...

                    Update StaSh

                    Run following command in StaSh ...

                    selfupdate -f dev
                    

                    ... and restart Pythonista.

                    Test pip

                    Feel free to test pip command now. Fixes were made in install, versions and update.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post
                    Powered by NodeBB Forums | Contributors