NodeGraphQt
NodeGraphQt copied to clipboard
ImportError: No Qt binding were found.
Hi, I have the following error:
NodeGraphQt % python3 example_auto_nodes.py
Traceback (most recent call last):
File "example_auto_nodes.py", line 3, in
File "/Users/atx/Documents/Python/2021-NodeGraphQt/NodeGraphQt/init.py", line 76, in
MacOS 11.5.2, Python 3.6
Qt.py
, the abstraction layer for PySide2
/PyQt5
used by NodeGraphQt, requires at least one of these two Qt bindings to be installed. Simply install the one of your preference with the Python package manager pip3
.
I would generally recommend PySide since it is officially supported by The Qt Company and the licensing model is more liberal than the one of PyQt.
Thanks, @mara004, for the suggestion! After try to install the pyside2, I find a new error msg while running:
% python3 example.py
Error in importing class: cannot import name 'QtCore' from 'NodeGraphQt' (/Users/atx/Documents/Python/2021-NodeGraphQt/NodeGraphQt/init.py)
Anything wrong?
I can reproduce the error message. However, the GUI still shows up correctly for me.
There is one spot in example_auto_nodes/input_nodes.py
where QtCore is wrongly imported from NodeGraphQt, but changing it did not fix the error messages.
The related code apparently is getNodesRecursively()
in example_nodes.__init__
. Unfortuantely it's a bit hard to tell where the root cause of these errors is without having deeper insights into the code.
I can reproduce the error message. However, the GUI still shows up correctly for me. There is one spot in
example_auto_nodes/input_nodes.py
where QtCore is wrongly imported from NodeGraphQt, but changing it did not fix the error messages. The related code apparently isgetNodesRecursively()
inNodeGraphQt.__init__
. Unfortuantely it's a bit hard to tell where the root cause of these errors is without having deeper insights into the code.
Same problem.
Yeah, and a similar issue exists for the math nodes example (which seems a little bit broken in general...)
I have the same issue and cannot install into Python as part of QGIS. It already has PyQt5 but it doesn't work.