Keep getting errors on import matplotlib
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.
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
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.