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.


    Keep getting errors on import matplotlib

    Pythonista
    3
    3
    2725
    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.
    • ps3141
      ps3141 last edited by

      I have an iPad pro with iOS 11.2.6 (recently updated) and Pythonista 3 installed.
      Trying to run plotting examples e.g. 3D Plot Demo.py I get "AttributeError module matplotlib has no attribute cbook".

      I got stuck there. Oddly enough this particular example did run before, perfectly. One wonders if the recent iOS upgrade broke something.

      Any help would be appreciated.

      Pi.

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

        can you post the full traceback? Use Print Traceback then copy the entire thing here.

        often we find that someone has accidentally installed something, so we can diuble check the path, etc.

        also, can you do
        import platform
        print platform.system()

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

          Try restarting Pythonista - sometimes this sort of issue (missing attributes on standard modules) happens when you stop a script while it was importing a module. (This causes Python to cache a half-initialized module, which is then reused for future imports of the same module.) The easiest way to fix this is to simply restart the app, so the Python interpreter is fully reset.

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