Forum Archive

Run error " module 'matplotlib' has no attribute 'cbook' "

shiro

Hello. I am bigginer of pythonista3.

I would like to run python code bellow,

・py code

import matplotlib.pyplot as plt

but, run error.

module 'matplotlib' has no attribute 'cbook'

How can I do for this problem ?
Could you let me know.

My environment is,

・pythonista3、stash、icloud Drive

・iOs12、iphoneXR

JonB

try force quitting pythonista, and trying again. matplotlib takes a long time to import, and it you cancel while it is loading, things get screwy. force quit the app, and it should be workng again.

also, since i see you are using stash, make sure you never tried to install matplotlib on your own.

shiro

Dear JonB

Thank you for kindness.

I remove python code, and import new.

I successed for running.

Thanks a lot.