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.


    SciPy import error

    Pythonista
    scipy
    6
    6
    4049
    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.
    • Joe
      Joe last edited by Joe

      I'm just trying to import scipy and I'm getting this error:

      Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/1701F3DE-82C4-468E-9C3E-657A36868569/Pythonista3/Documents/site-packages/scipy/init.py", line 97, in <module>
      from scipy.config import show as show_config
      ImportError: No module named 'scipy.config'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/private/var/mobile/Containers/Shared/AppGroup/1701F3DE-82C4-468E-9C3E-657A36868569/Pythonista3/Documents/sci.py", line 1, in <module>
      import scipy
      File "/private/var/mobile/Containers/Shared/AppGroup/1701F3DE-82C4-468E-9C3E-657A36868569/Pythonista3/Documents/site-packages/scipy/init.py", line 102, in <module>
      raise ImportError(msg)
      ImportError: Error importing scipy: you cannot import scipy while
      being in scipy source directory; please exit the scipy source
      tree first, and relaunch your python intepreter.

      What should i do?

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • omz
          omz last edited by

          In short: SciPy is not included with Pythonista, and it is also not possible to install it yourself for technical reasons (e.g. the fact that you don't have a compiler on iOS, and cannot run unsigned code without jailbreak).

          1 Reply Last reply Reply Quote 2
          • dwullery
            dwullery last edited by

            I am getting the same import error on import numpy and it IS part of pythonista. Is there an explanation for this?

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

              @dwullery Can you copy and paste the full traceback for the error? It's impossible that it is exactly the same error, since the OP's error explicitly mentions scipy in the error message.

              Also, you should try force-restarting Pythonista. (Double-click the home button, swipe Pythonista away to the top, then start Pythonista again from the home screen.) Sometimes when you stop a script while it is importing a module, it can get stuck in a half-imported state that causes lots of errors. The best way to fix that is to fully restart the app.

              1 Reply Last reply Reply Quote 1
              • ronaldgevern
                ronaldgevern last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Powered by NodeBB Forums | Contributors