Skip to content

example for noobs... #496

@zweisteinko

Description

@zweisteinko

I apologize for the bad translation (google translator).
I use venv (otherwise linux does not allow installing anything with python)
I activate vnv and run vnom installation pip install NodeGraphQt
then I install pip3 install PyQt5

I unzip "NodeGraphQt-main.zip"

python examples/basic_example.py
Traceback (most recent call last):
File "/home/zweistein/test_grap/NodeGraphQt-main/examples/basic_example.py", line 9, in
from examples.nodes import basic_nodes, custom_ports_node, group_node, widget_nodes
ModuleNotFoundError: No module named 'examples'

I copy basic_example.py to the NodeGraphQt-main folder

python basic_example.py
Traceback (most recent call last):
File "/home/zweistein/test_grap/NodeGraphQt-main/basic_example.py", line 9, in
from examples.nodes import basic_nodes, custom_ports_node, group_node, widget_nodes
File "/home/zweistein/test_grap/NodeGraphQt-main/examples/nodes/basic_nodes.py", line 3, in
from NodeGraphQt import BaseNode, BaseNodeCircle, BaseNodeSVG
File "/home/zweistein/test_grap/NodeGraphQt-main/NodeGraphQt/init.py", line 50, in
from .base.graph import NodeGraph, SubGraph
File "/home/zweistein/test_grap/NodeGraphQt-main/NodeGraphQt/base/graph.py", line 11, in
from NodeGraphQt.base.commands import (NodeAddedCmd, NodeMovedCmd,
File "/home/zweistein/test_grap/NodeGraphQt-main/NodeGraphQt/base/commands.py", line 4, in
from NodeGraphQt.constants import PortTypeEnum
File "/home/zweistein/test_grap/NodeGraphQt-main/NodeGraphQt/constants.py", line 38, in
ITEM_CACHE_MODE = QtWidgets.QGraphicsItem.DeviceCoordinateCache
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QGraphicsItem' has no attribute 'DeviceCoordinateCache'

What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions