Python Forum
[PyQt] [Solved] Eric 7 uic error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyQt] [Solved] Eric 7 uic error
#1
Good morning.

I have a problem with erik7 after reinstalling PyQt5 which I had uninstalled by mistake.
In a small test program when I run "generate diaog code" I get this error : "uic error There was an error loading the form .... PyQt5 could not found".
If I start a python program in pyqt5 from the shell it starts and works.
I'm on windows with python 3 installed.

Below my pip list:

U:\>pip list
Package Version
------------------------- ---------
altgraph 0.17.2
asttokens 2.0.5
bleach 5.0.0
cachetools 5.0.0
certifi 2021.10.8
chardet 4.0.0
charset-normalizer 2.0.12
commonmark 0.9.1
cycler 0.11.0
docutils 0.18.1
EditorConfig 0.12.3
fonttools 4.33.3
future 0.18.2
idna 3.3
importlib-metadata 4.11.3
jedi 0.18.1
keyring 23.5.0
kiwisolver 1.4.2
Markdown 3.3.6
matplot 0.1.9
matplotlib 3.5.2
numpy 1.22.3
packaging 21.3
pandas 1.4.2
parso 0.8.3
pefile 2021.9.3
Pillow 9.1.0
pip 22.3.1
pipdeptree 2.2.1
pkginfo 1.8.2
py2exe 0.11.1.0
pyenchant 3.2.2
Pygments 2.12.0
pyinstaller 5.0.1
pyinstaller-hooks-contrib 2022.4
pyloco 0.0.139
pyparsing 3.0.8
PyQt5 5.15.7
PyQt5-Qt5 5.15.2
PyQt5-sip 12.11.0
PyQt6 6.3.0
PyQt6-Charts 6.3.0
PyQt6-Charts-Qt6 6.3.0
PyQt6-QScintilla 2.13.2
PyQt6-Qt6 6.3.0
PyQt6-sip 13.3.1
PyQt6-WebEngine 6.3.0
PyQt6-WebEngine-Qt6 6.3.0
python-dateutil 2.8.2
pytz 2022.1
pywin32 304
pywin32-ctypes 0.2.0
PyYAML 6.0
qt6-applications 6.1.0.2.2
readme-renderer 35.0
requests 2.27.1
requests-toolbelt 0.9.1
rfc3986 2.0.0
rich 12.4.1
Send2Trash 1.8.0
setuptools 62.1.0
SimpleWebSocketServer 0.1.1
six 1.16.0
toml 0.10.2
twine 4.0.0
urllib3 1.26.9
ushlex 0.99.1
webencodings 0.5.1
websocket-client 1.3.2
wheel 0.37.1
zipp 3.8.0
Reply
#2
Did you install eric7 in a virtual environment? When you re-installed PyQt5 did you install it in the same virtual environment? I've never used eric, but I would expect it to show up when you type pip list, and I don't see it in your list. Could just be that you didn't use pip to install eric (used the install.py script).

I don't think generate dialog code is an eric command, I think it is a QtDesigner command. Eric provides an interface to the package. Do you have QtDesigner? Is it installed in the exact same place as before?
Reply
#3
Hello everyone
I fixed it, I didn't understand exactly why but now it works.
I uninstalled Eric7 (penultimate version) and installed the latest version 23.1.1
To install I downloaded the archive and I used the appropriate python script.
I am now with QTdesigner 6.1.0 .
Seems to work fine now.

Thanks everyone for your attention
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyQt] [Solved] Help with an DLL import error Extra 4 9,813 Mar-13-2023, 02:51 AM
Last Post: victorable
  Newb Eric/Qt installation problem paulofelora 5 2,469 May-28-2021, 09:46 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020