Forum Archive

Installing Boto3 with StaSH?

stevegio

I'm curious to know if anyone has been able successfully install boto3 with StaSH. Did a bunch of searches and didn't turn up much information.

I'm new to Pythonista and have some Python experience but it seems that the pip installed with StaSH requires you to install dependencies by hand. All seem to pass the load test except for mock. Boto3 installs without it but if I try to run a script an connect to S3 I just get the error "no module named concurrent".

I'm wondering if this is beyond the limits of what can be done with Pythonista.

ywangd

You can install concurrent module manually as follows (note that concurrent module has only one sub-module futures):

pip install futures

It will report import error but you can ignore that as it is correctly installed. Due to iOS limitation, only ThreadPoolExecutor can work in Pythonista, NOT ProcessPoolExecutor.

stevegio

Thank you for the push in the right direction. I could not install "futures" but I was able to install "future" which got everything working.

Super impressed with Pythonista. This is going to really boost my productivity on the iPad Pro!

Thanks again!