0

In Python (v3.6, Win10) I get an error, if I try to import QtChart. The command

>from PyQt5.QtChart import *

yields this message:

ImportError: DLL load failed. The specified procedure could not be found

The command pip list shows, that I have matching versions of PyQt5 and PyQtChart

PyQt5                         5.15.1
PyQt5-sip                     12.8.0
PyQtChart                     5.15.1

which rules out this solution. What puzzles me, is that I get

>print(QtCore.PYQT_VERSION_STR)
>5.9.2

I am not sure, if this version number has to match with the one above.

dba
  • 325
  • 1
  • 6
  • 16
  • 2
    I think you have 2 python installed since in one of them you indicate that you have pyqt5 5.15 but in the other 5.9.2 – eyllanesc Sep 23 '20 at 18:27
  • Interesting. `pip list -v` gives the same path like `PyQt5.__file__`. But I get different versions. – dba Sep 23 '20 at 19:03
  • execute `python -m pip list` – eyllanesc Sep 23 '20 at 19:05
  • With this I get PyQt5 5.15.1, PyQt5-sip 12.8.0, PyQtChart 5.15.1. – dba Sep 23 '20 at 20:22
  • I have completely uninstalled anaconda and reinstalled it. With PyQt5.__file__ I get 'C:\\Users\\XXX\\Anaconda3\\envs\\envs\\lib\\site-packages\\PyQt5\\__init__.py'. In the same environment I see C:\Users\XXX\Anaconda3\envs\envs\Lib\site-packages\PyQtChart-5.15.1.dist-info. – dba Sep 24 '20 at 21:34
  • for some reason it works now in Python3.7 – dba Sep 25 '20 at 13:18

0 Answers0