stash icon indicating copy to clipboard operation
stash copied to clipboard

boto3 pip package issue

Open mcmans opened this issue 4 years ago • 8 comments

I’m having issues trying to pip install boto3. Attached a screenshot of the install and trying to import, also it’s not present in site-packages. Screenshot 2020-03-14 at 11 04 21

Screenshot 2020-03-14 at 11 05 17

mcmans avatar Mar 14 '20 11:03 mcmans

Interesting bug. It seems like it is a py3-exclusive bug with our wheel installer. As a workaround, you can use pip --verbose install python-dateutil; pip --verbose install --no-binary :all: boto3 for now. You may need to run pip uninstall boto3first.

bennr01 avatar Mar 14 '20 11:03 bennr01

Upon installing boto3, the contents of the site-packages-3 was deleted, with only these files remaining:

[~/Documents]$ ls ~/Documents/site-packages-3

/private/var/mobile/Containers/Shared/AppGroup/6C2ECC4F-72E4-4527-BBDF-918E842C781D/Pythonista3/Documents/site-packages-3/:
futures-3.1.1.dist-info Readme.md

Apparently, when installing futures as a dependency, for some reason only its dist-info folder remains, with all other files deleted. This is a big problem because it will lead to loss of user data in site-packages-3, and must be fixed ASAP. The futures package must be blacklisted as soon as possible.

ongyx avatar Mar 14 '20 11:03 ongyx

The problem would be installing futures when running StaSh on Python 3. Because futures is a Python 2 backport of the Python 3 concurrent.futures, it will appear to successfully install on StaSh in Python 3 (when in fact the whole site-packages-3 folder is erased).

ongyx avatar Mar 14 '20 11:03 ongyx

Interestingly, concurent.futures is actually installed, but in the parent directory of site-packages-3.

bennr01 avatar Mar 14 '20 11:03 bennr01

For now, it would be a good idea to blacklist futures on pip first.

ongyx avatar Mar 14 '20 11:03 ongyx

@onyxware OK, I have blacklisted it for now.

EDIT: Seems like we both did the same...

bennr01 avatar Mar 14 '20 11:03 bennr01

Thank you, I guess I will replace my blacklist copy with yours.

ongyx avatar Mar 14 '20 11:03 ongyx

By the way, you should notify StaSh users to update their copy using selfupdate -f so that site-packages-3 won’t be erased if somebody tries to install futures accidentally...

EDIT: If they are on the dev release, use selfupdate -f ywangd/dev instead.

ongyx avatar Mar 14 '20 12:03 ongyx