First time here? Check out the FAQ!

Revision history  [back]

Problem Solved. There was a file "matplotlib.py" in the current folder dating back to 2018 ! (the last time I played with matplotlib) which contained the line "import matplotlib.pyplot as plt"

Apologies - I should have examined the error message more carefully before suspecting other peoples software !

During handling of the above exception, another exception was raised: Traceback (most recent call last): Python Shell, prompt 1, line 1 # Used internally for debug sandbox under external interpreter
File "/home/**/winglets/matplotlib.py", line 8, in import matplotlib.pyplot as plt builtins.ModuleNotFoundError: No module named' matplotlib.pyplot'; 'matplotlib' is not a package

Problem Solved. There was a file "matplotlib.py" in the current folder dating back to 2018 ! (the last time I played with matplotlib) which contained the line "import " matplotlib.pyplot as plt"

Apologies - I should have examined the error message more carefully before suspecting other peoples software !

During handling of the above exception, another exception was raised: Traceback (most recent call last): Python Shell, prompt 1, line 1 # Used internally for debug sandbox under external interpreter
File "/home/**/winglets/matplotlib.py", line 8, in import matplotlib.pyplot as plt builtins.ModuleNotFoundError: No module named' matplotlib.pyplot'; 'matplotlib' is not a package