Hi I am using Ubuntu: and Pycharm latest version(2019.2): if i import only matplotlib it does not show any error, however if i try to execute matplotlib.pyplot as plt it shows me below error: Please refer the note section below
import matplotlib.pyplot as plt
Backend GTK3Agg is interactive backend. Turning interactive mode
on.
Traceback (most recent call last):
File "/home/sarfi/.local/lib/python3.7/site-
packages/IPython/core/interactiveshell.py", line 3326, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-2-a0d2faabd9e9>", line 1, in <module>
import matplotlib.pyplot as plt
File "/snap/pycharm-
community/143/helpers/pydev/_pydev_bundle/pydev_import_hook.py",
line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "/home/sarfi/.local/lib/python3.7/site-
packages/matplotlib/pyplot.py", line 2362, in <module>
install_repl_displayhook()
File "/home/sarfi/.local/lib/python3.7/site-
packages/matplotlib/pyplot.py", line 126, in
install_repl_displayhook
ip.enable_gui(ipython_gui_name)
File "/snap/pycharm-community/143/helpers/pydev/_pydev_bundle/pydev_ipython_console_011.py", line 146, in enable_gui
return real_enable_gui(gui, app)
File "/snap/pycharm-community/143/helpers/pydev/pydev_ipython/inputhook.py", line 536, in enable_gui
return gui_hook(app)
File "/snap/pycharm-community/143/helpers/pydev/pydev_ipython/inputhook.py", line 413, in enable_gtk3
self.set_inputhook(create_inputhook_gtk3(self._stdin_file))
AttributeError: 'InputHookManager' object has no attribute '_stdin_file'
NOTE: I tried uninstalling matplotlib and pip3 and reinstalled it,
I also installed the Six : pip3 install Six, however, the issue remains
the same