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.
pip-alike 'pipista' - download python modules from PyPi
-
this is a very very useful library, thanks for this
-
This seems to work great. However I'm a bit confused on how to access/uncompress the results. You mention that there should now be a pypi-modules directory, but how do I access it? Should it show up I the library?
-
http://omz-software.com/pythonista/forums/discussion/74/advanced-shell-shellista use this tool to browse around the pypi-modules directory and open up the files you want to use/save or you could go with a more visual filebrowser which will do the same thing as the shell but with, just, you know a GUI one can be found here: http://omz-software.com/pythonista/forums/discussion/81/fileman-a-filemanager and here: http://omz-software.com/pythonista/forums/discussion/19/file-browser
-
Keep an eye on this thread. I'll implement automatic module installation this weekend.
The shellista script is also one of my projects, I've just been too busy to move the decompression routines over to pipista and finish the automatic pure python module extraction.
I've already figured out all the logic necessary for it though :)
-
So, after getting a new iPad and running the new iOS I reinstalled pythonista and am trying the new pipista importer which runs without error, however nothing ever seems to get installed.
pipista.pypi_install('numpy')
runs through compiling pure python modules - True
and then nothing.
No files appear in pypi-modules. Am I missing something?
-
As I understand it numpy is not currently possible on Pythonista. Only modules entirely written in Python (it seems like you know this, but just saying for those lurking). Numpy has some C/Fortran behind it, so requires a bit of effort to get it working.
One developer has been working on Numpy and has released it under the PyNum app. I did run the pipista code to grab a python module, but it didn't untar. I'm using the newest iPad/OS as well.
-
Ahh, sorry, numpy was a bad example. However, shouldn't some error be reported? I've also tried with boto, scipy, StarCluster, ipython
with each of these, if you try "import 'theModuleName'" right after the .tar.gz file is downloaded, you get no error. However, after the Compiling message if you try to import you get an ImportError: No moudle named... error.
are each of these not written in Python? Is there a way to tell if modules are written in pure python?
-
I don't know of an easy way, but I am new to Python ;p
-
It does seem like the moduleName.tar.gz file never passes the "#PK Check" within "_unzip()"
So the file is never unzipped. I still can't track down where the "True" message is coming from or why,if the return of "_py_build()" is None, does an error not get thrown. -
As the above states...
What doesn't yet work: Unzip / ungzip / untar of the modules Moving them into the correct place
For some reason I got the impression that this was finally working but I'm not sure why.
using shellista I'm able to manually unzip and untar the modules, however I'm not sure how to get them bundled and installed properly after that.I'm sure I did this a year or so ago, but my memory fails me.
For future releases I would Strongly vote in favor of some pip type install being built into pythonista.