ImportError: cannot import name 'QtChart' from 'PyQt5' / Qprinter crashes

hjm hjm at pmeonline.net
Thu Jul 23 18:46:05 BST 2020


Hi there,

I'm using Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC 
v.1915 64 bit (AMD64)] on Windows 10 on pyCharm 2020.1.4
I was runing pyqt5.12 without troubles.
I've tested a script to use QPrinter and this ended up with Process 
finished with exit code -1073740791 (0xC0000409) unable to debug (for me).

from PyQt5import QtPrintSupport
myprinter= QtPrintSupport.QPrinter ()

I thought maybe I need upgrade and installed py
  pip install PyQt5==5.15 PyQtChart==5.15 pyqtwebengine==5.15 (pip3 same 
results)

After that I got an import error also frpm another script which contains

from PyQt5import QtChart

ImportError: cannot import name 'QtChart' from 'PyQt5' 
(C:\Users\myname\IR-Check_Tablet\lib\site-packages\PyQt5\__init__.py).

The files are installed, I have a directory with lot of files (53) 
called c:\Program Files\Python37\Lib\site-packages\PyQt5\bindings\QtChart\

Also, the QPrinter error still exists.

I cleared caches, run multiple restarts. All other modules seems to run 
normal. All installs are made as Administrator.

I've no idea how to solve this. There were no other changes on the 
machine done. Can someone give me a hint where to start?

Thanks in advance

Hans


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20200723/9713541d/attachment.htm>


More information about the PyQt mailing list