Forum Archive

Stash: pip install: no download

upwart

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?

JonB

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

zrzka

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.

upwart

So, is there anyway to reset ?

zrzka

@upwart reset what?

upwart

Reset or forget the wrong version in Stash

zrzka

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

pip remove your-pkg-name

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.