omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Pythonista 2.0: Pipista does not work after update!?

    Pythonista
    modules pipista
    2
    4
    3656
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nealtz
      nealtz last edited by nealtz

      After I upgraded to Pythonista 2.0 every script and even the console show the following error after the command "import pipista":

      >>> import pipista
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
      ImportError: No module named pipista
      

      The pipista.py script is still in the main directory and all modules are in the "pypi-modules" folder.

      Any hints to get get pipista support back?

      1 Reply Last reply Reply Quote 0
      • Webmaster4o
        Webmaster4o last edited by

        This probably means that you've run a script that isn't in the main directory, changing the os.curdir. This has nothing to do with 2.0. How about you move pipista to site-packages?

        1 Reply Last reply Reply Quote 0
        • nealtz
          nealtz last edited by nealtz

          Thanks for the help!

          You are right, I tried to run a script in a folder, but this worked without any problems before the update.

          Now I moved pipista into site-packages and the import from the script in the folder worked, but when the script tries to import a module from the pypi-modules folder I got the same error.

          I moved the pipy-modules folder into the site-packages folder but this doesn't change anything ... but wait I forgot that that site-packages folder has to be reload or something like that ... I will try now ...

          Edit: After reloading everything in the site-packages folder importing from pypi-modules is working again.

          Thanks for the help!

          1 Reply Last reply Reply Quote 0
          • Webmaster4o
            Webmaster4o last edited by

            You're very welcome. Let me know if anything else comes up.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB Forums | Contributors