1

I am trying to import loadui library in pycharm.I have already pip install pyqt5 and pyqt5-tools.But when I try to import loadui with from PyQt5.uic import loadUi this code it is giving me Unresolved reference 'LoadUi' and Cannot find reference 'uic' in '__init__.pyi' errors.

How can i solve this ?

Example

eyllanesc
  • 235,170
  • 19
  • 170
  • 241
  • Check that the module doesn't run. It could just be a warning. If Pycharm was running while installing you may need to restart Pycharm. If none of these work then try reinstalling PyQt5 – TheLazyScripter Jul 03 '21 at 00:16
  • 1
    I have the same problem (at least it seems so): an annoying "Cannot find reference 'uic' in '__init__.pyi'" "Problem", but code actually runs without any issue so I guess is a benign (but very annoying) warning. Installing pyqt5-tools has no visible effect. Does anyone have further hints? – ZioByte Nov 21 '21 at 16:25

1 Answers1

2

Maybe you should try to install PyQt5 tools. Try this command: pip install pyqt5-tools

Amjed
  • 41
  • 5
  • pycharm is suggesting pyqt-stubs for more code sightings, that is buggy (do not install that binary) after doing pip install pyqt5-tools – abhishek Singh Apr 01 '22 at 13:54