Matplotlib support failed

Answered

code:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 1.01, 0.05)
U = np.hstack((2 * x[:10], 2 - 2 * x[10:]))

plt.plot(x, U)
plt.show()

result:

however, it runs correctly in sublime text 3.

11 comments

I rollback my matplotlib to 2.1.2 from 2.2 and all OK

1

Confirmed, rolling back to 2.1.2 fixes the issue.

0

Hi! I am sorry for the inconvenience! Could you please check 2018.1 RC build https://www.jetbrains.com/pycharm/nextversion/? This problem should be obsolete there.

1

Hi, I update to 2018.1, with matplotlib 2.2

problem still exist:

 

PyCharm 2018.1 (Community Edition)
Build #PC-181.4203.547, built on March 26, 2018
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0



1

My bad, I thought it was PY-28836 but it looks like another matplotlib API change breaks interactive mode, we're looking into it, corresponding issue: PY-29260.

0

 I also had this issue and can confirm that rolling back fixed it.

0

Hi Willtesler! Could you please give 2018.1.2 version a try? The problem should be fixed or at least a proper error will be shown.

0

Looks fixed with 2018.1.3!   I didn't try 2018.1.2.  Thanks Pavel!  

0

I am using 

PyCharm 2018.2.4 (Professional Edition)
Build #PY-182.4505.26, built on September 19, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

with anaconda environment with Python 3.6

I get the same error, as described above. What would you recommend?

2

Had the same issue.

Sorry for the poor quality, having some issues with the snipping tool doing this.

import matplotlib.pyplot as plt
Matplotlib support failed
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 23, in do_import
succeeded = activate_func()
File "C:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_console_utils.py", line 199, in <lambda>
"matplotlib": lambda: activate_matplotlib(self.enableGui),
File "C:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 96, in activate_matplotlib
gui, backend = find_gui_and_backend()
File "C:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\pydev_ipython\matplotlibtools.py", line 47, in find_gui_and_backend
backend = matplotlib.rcParams['backend']
File "C:\Users\asish.mahapatra\AppData\Local\Continuum\anaconda3\envs\lba\lib\site-packages\matplotlib\__init__.py", line 891, in __getitem__
from matplotlib import pyplot as plt
File "C:\Program Files\JetBrains\PyCharm 2018.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "<frozen importlib._bootstrap>", line 200, in _lock_unlock_module
File "<frozen importlib._bootstrap>", line 166, in _get_module_lock
RecursionError: maximum recursion depth exceeded while calling a Python object
Matplotlib support failed

 

 

PyCharm 2018.2.4 (Professional Edition)
Build #PY-182.4505.26, built on September 19, 2018
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

This is with matplotlib=3.0.0 installed

0

Hi,

Thank you for contacting PyCharm support.

We have a corresponding issue in our issue tracker https://youtrack.jetbrains.com/issue/PY-31584, please vote for it and follow for future updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

Kind regards,

Sergey

 

0

Please sign in to leave a comment.