pycharm breaks after upgrading to python 3.6

Completed

The stacktrace is below. Other reports of the same problems have been posted on the issues page and there night be a possible solution by changing the value in the guis dict in the inputhook file but I cannot find a way to test as I don't know how to get write permissions to Pycharm files in windows. 

If someone could at first tell me how to get these permissions at least I can test. thanks

 

Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\pydev_run_in_console.py", line 52, in run_file
pydev_imports.execfile(file, globals, locals) # execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/Kamal/OneDrive/Project_root/datasys/dbcreators.py", line 12, in <module>
import matplotlib.pyplot as plt
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 20, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\Kamal\Anaconda3\envs\py36-0\lib\site-packages\matplotlib\pyplot.py", line 2512, in <module>
install_repl_displayhook()
File "C:\Users\Kamal\Anaconda3\envs\py36-0\lib\site-packages\matplotlib\pyplot.py", line 165, in install_repl_displayhook
ip.enable_gui(ipython_gui_name)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\_pydev_bundle\pydev_ipython_console_011.py", line 130, in enable_gui
return real_enable_gui(gui, app)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\pydev_ipython\inputhook.py", line 528, in enable_gui
return gui_hook(app)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\pydev_ipython\inputhook.py", line 196, in enable_qt4
app, inputhook_qt4 = create_inputhook_qt4(self, app)
File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2.2\helpers\pydev\pydev_ipython\inputhookqt4.py", line 84, in create_inputhook_qt4
app = QtGui.QApplication([" "])
AttributeError: module 'PyQt5.QtGui' has no attribute 'QApplication'
PyDev console: using IPython 6.2.1
Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] on win32

 

 

0
1 comment

Please sign in to leave a comment.