Has anyone tried to install Jonathan Slenders awesome ptpython to Pythonista?
I was able to get it installed through StaSh, but the main install script didn't get installed. When I looked at what it actually did on my desktop, thought it should be easy, but ...
Here is what the code looks like:
import re import sys from ptpython.entry_points.run_ptpython import run if __name__ == '__main__': sys.argv = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv) sys.exit(run())
But when I run it, I get "Error: No module named entry_points.run_ptpython" even though I can find the correct package in the site-package directory.
Anyone have a idea of what I might try?
So was trying several things, to no avail. Then I thought I'd just see if I could import the package in the console and see what I get.
>>> import ptpython >>> import ptpython.entry_points Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named 'ptpython.entry_points'; 'ptpython' is not a package
It doesn't have an issue with the top package name ('ptpython'), but it does to any other under that.
Does this ring a bell to anyone? Is there anything that I could try?
Maybe the import of an (possible) init.py is not working.
If you can live without "import ptpython.entry_points", then just
continue with "import ptpython"
Thanks tinnet! I'll give that a go and see what I can figure out. I should look at the init.py files as well.