Matplotlib throwing an error while trying to export channel output data

asked Jul 19 '1

Automation Guy gravatar image

I'm getting the following error while trying to run the following code as mentioned in the URL: Can somebody help me to resolve the error. Google has little to no help on this error. code is from the following

Traceback (most recent call last): File "Z:\python\ACCC_Compiled\Version_11.2-DynSim\testplot.py", line 21, in <module> from matplotlib import pyplot as plt File "C:\Python37\lib\site-packages\matplotlib\__init__.py", line 107, in <module> from . import _api, cbook, docstring, rcsetup File "C:\Python37\lib\site-packages\matplotlib\cbook\__init__.py", line 31, in <module> from matplotlib import _api, _c_internal_utils ImportError: cannot import name '_c_internal_utils' from 'matplotlib' (C:\Python37\lib\site-packages\matplotlib\__init__.py)

Comments

code is from the URL: https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/%3C/p%3E (https://psspy.org/psse-help-forum/question/3611/extract-data-with-dyntools-and-plot-with-matplotlib/)

Automation Guy gravatar imageAutomation Guy (Jul 19 '1)

The posted code is to plot after a dynamic simulation run. It uses dyntools to extract channels data and it runs outside the PSSe GUI. Open a CMD window and run it. Also, test matplotlib installation in your system, just run any demo code found on the internet.

jconto gravatar imagejconto (Jul 20 '1)