luxonis / depthai_pipeline_graph

Tool that builds graphs of DepthAI pipelines
MIT License
10 stars 3 forks source link

result not displayed #7

Open Fredrik1997 opened 9 months ago

Fredrik1997 commented 9 months ago

I'm trying to visualize a pipeline but it does not succeed. To find out if it is just my code I tested also an example pipeline, where I got this output: ~/github/depthai-experiments/gen2-emotion-recognition$ pipeline_graph run "python main.py" [2024-02-13 09:27:54.944] [debug] Python bindings - version: 2.21.2.0 from build: 2023-04-05 20:43:05 +0000 [2024-02-13 09:27:54.944] [debug] Library information - version: 2.21.2, commit: 125feb8c2e16ee4bf71b7873a7b990f1c5f17b18 from 2023-04-05 21:24:25 +0300, build: 2023-04-05 20:04:37 +0000 [2024-02-13 09:27:54.945] [debug] Initialize - finished [2024-02-13 09:27:55.015] [debug] Resources - Archive 'depthai-bootloader-fwp-0.0.24.tar.xz' open: 1ms, archive read: 69ms [2024-02-13 09:27:55.235] [debug] Resources - Archive 'depthai-device-fwp-3575b77f20e796b4e79953bf3d2ba22f0416ee8b.tar.xz' open: 1ms, archive read: 289ms Pipeline schema retrieved Program exited. Traceback (most recent call last): File "/home/fredrik/anaconda/envs/depthai/bin/pipeline_graph", line 8, in <module> sys.exit(main()) ^^^^^^ File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/pipeline_graph.py", line 375, in main p.cmd_tool(args) File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/pipeline_graph.py", line 221, in cmd_tool self.create_graph(schema) File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/pipeline_graph.py", line 267, in create_graph qt_node = self.graph.create_node('dai.DepthaiNode', ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/base/graph.py", line 922, in create_node node = self._node_factory.create_node_instance(node_type) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/base/factory.py", line 61, in create_node_instance return _NodeClass() ^^^^^^^^^^^^ File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/pipeline_graph.py", line 24, in __init__ super(DepthaiNode, self).__init__() File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/nodes/base_node.py", line 65, in __init__ super(BaseNode, self).__init__(qgraphics_views) File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/base/node.py", line 73, in __init__ self._view = _NodeItem() ^^^^^^^^^^^ File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/qgraphics/node_base.py", line 31, in __init__ super(NodeItem, self).__init__(name, parent) File "/home/fredrik/anaconda/envs/depthai/lib/python3.11/site-packages/depthai_pipeline_graph/NodeGraphQt/qgraphics/node_abstract.py", line 14, in __init__ self.setFlags(self.ItemIsSelectable | self.ItemIsMovable) TypeError: 'PySide2.QtWidgets.QGraphicsItem.GraphicsItemFlag' object cannot be interpreted as an integer

some extra info: `~/github/depthai-experiments/gen2-emotion-recognition$ pip list Package Version


blobconverter 1.4.3 certifi 2024.2.2 charset-normalizer 3.3.2 depthai 2.21.2.0 depthai_pipeline_graph 0.0.5 depthai-sdk 1.11.0 idna 3.6 marshmallow 3.17.0 NodeGraphQt 0.6.29 numpy 1.26.4 opencv-contrib-python 4.9.0.80 opencv-python 4.9.0.80 packaging 23.2 pip 24.0 PySide2 5.13.2 pytube 15.0.0 PyTurboJPEG 1.6.4 PyYAML 6.0.1 Qt.py 1.3.8 requests 2.31.0 sentry-sdk 1.21.0 setuptools 69.0.3 shiboken2 5.13.2 types-pyside2 5.15.2.1.6 urllib3 2.2.0 wheel 0.42.0 xmltodict 0.13.0 ` Any suggestions to fix this are welcome!