Open JaCoHSU opened 2 years ago
@JaCoHSU It's possible some packages need to be installed for Qt on Linux, these added here: https://github.com/luxonis/depthai-python/commit/79f47c7c5e4dc55fcafdece9cca684b12702e03f
You can install with apt install
, or just run the command to install all dependencies:
sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash
(from https://docs.luxonis.com/projects/api/en/latest/install/?#ubuntu)
@alex-luxonis thanks for the quick response.
I ran the install_dependencies.sh
0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in ./.local/lib/python3.6/site-packages (21.3.1)
SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"
I also did run the install_requierments.py again:
pip 21.3.1 from /home/falke/.local/lib/python3.6/site-packages/pip (python 3.6)
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Requirement already satisfied: pip in /home/falke/.local/lib/python3.6/site-packages (21.3.1)
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Found existing installation: opencv-python 4.5.1.48
Uninstalling opencv-python-4.5.1.48:
Successfully uninstalled opencv-python-4.5.1.48
Found existing installation: opencv-contrib-python 4.5.1.48
Uninstalling opencv-contrib-python-4.5.1.48:
Successfully uninstalled opencv-contrib-python-4.5.1.48
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Found existing installation: depthai 2.13.3.0
Uninstalling depthai-2.13.3.0:
Successfully uninstalled depthai-2.13.3.0
/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
/usr/lib/python3/dist-packages/secretstorage/util.py:19: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
from cryptography.utils import int_from_bytes
Looking in indexes: https://pypi.org/simple, https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/, https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
Ignoring opencv-python: markers 'platform_machine != "aarch64" and platform_machine != "armv6l" and platform_machine != "armv7l" and python_version == "3.10"' don't match your environment
Ignoring opencv-contrib-python: markers 'platform_machine != "aarch64" and platform_machine != "armv6l" and platform_machine != "armv7l" and python_version == "3.10"' don't match your environment
Ignoring opencv-python: markers 'platform_machine == "armv6l" or platform_machine == "armv7l"' don't match your environment
Ignoring opencv-contrib-python: markers 'platform_machine == "armv6l" or platform_machine == "armv7l"' don't match your environment
Obtaining file:///home/falke/installations/depthai/depthai_sdk (from -r requirements.txt (line 10))
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests==2.26.0 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements.txt (line 1)) (2.26.0)
Requirement already satisfied: pyrebase4==4.5 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements.txt (line 2)) (4.5.0)
Requirement already satisfied: argcomplete==1.12.1 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements.txt (line 3)) (1.12.1)
Collecting opencv-python==4.5.1.48
Using cached opencv_python-4.5.1.48-cp36-cp36m-manylinux2014_x86_64.whl (50.4 MB)
Collecting opencv-contrib-python==4.5.1.48
Using cached opencv_contrib_python-4.5.1.48-cp36-cp36m-manylinux2014_x86_64.whl (56.3 MB)
Requirement already satisfied: pyqt5<6,>5 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements.txt (line 12)) (5.15.6)
Collecting depthai==2.13.3.0
Using cached depthai-2.13.3.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.7 MB)
Requirement already satisfied: idna<4,>=2.5 in /home/falke/.local/lib/python3.6/site-packages (from requests==2.26.0->-r requirements.txt (line 1)) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /home/falke/.local/lib/python3.6/site-packages (from requests==2.26.0->-r requirements.txt (line 1)) (2020.6.20)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /home/falke/.local/lib/python3.6/site-packages (from requests==2.26.0->-r requirements.txt (line 1)) (1.25.10)
Requirement already satisfied: charset-normalizer~=2.0.0 in /home/falke/.local/lib/python3.6/site-packages (from requests==2.26.0->-r requirements.txt (line 1)) (2.0.8)
Requirement already satisfied: python-jwt>=2.0.1 in /home/falke/.local/lib/python3.6/site-packages (from pyrebase4==4.5->-r requirements.txt (line 2)) (3.3.1)
Requirement already satisfied: gcloud>=0.18.3 in /home/falke/.local/lib/python3.6/site-packages (from pyrebase4==4.5->-r requirements.txt (line 2)) (0.18.3)
Requirement already satisfied: requests-toolbelt>=0.7.1 in /usr/lib/python3/dist-packages (from pyrebase4==4.5->-r requirements.txt (line 2)) (0.8.0)
Requirement already satisfied: pycryptodome>=3.6.4 in /home/falke/.local/lib/python3.6/site-packages (from pyrebase4==4.5->-r requirements.txt (line 2)) (3.11.0)
Requirement already satisfied: oauth2client>=4.1.2 in /home/falke/.local/lib/python3.6/site-packages (from pyrebase4==4.5->-r requirements.txt (line 2)) (4.1.3)
Requirement already satisfied: importlib-metadata<3,>=0.23 in /home/falke/.local/lib/python3.6/site-packages (from argcomplete==1.12.1->-r requirements.txt (line 3)) (1.7.0)
Requirement already satisfied: numpy>=1.13.3 in /home/falke/.local/lib/python3.6/site-packages (from opencv-python==4.5.1.48->-r requirements.txt (line 5)) (1.19.4)
Requirement already satisfied: blobconverter>=1.2.6 in /home/falke/.local/lib/python3.6/site-packages (from depthai-sdk==1.1.3->-r requirements.txt (line 10)) (1.2.7)
Requirement already satisfied: pytube>=11.0.1 in /home/falke/.local/lib/python3.6/site-packages (from depthai-sdk==1.1.3->-r requirements.txt (line 10)) (11.0.1)
Requirement already satisfied: PyQt5-sip<13,>=12.8 in /home/falke/.local/lib/python3.6/site-packages (from pyqt5<6,>5->-r requirements.txt (line 12)) (12.9.0)
Requirement already satisfied: PyQt5-Qt5>=5.15.2 in /home/falke/.local/lib/python3.6/site-packages (from pyqt5<6,>5->-r requirements.txt (line 12)) (5.15.2)
Requirement already satisfied: boto3==1.17.39 in /home/falke/.local/lib/python3.6/site-packages (from blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (1.17.39)
Requirement already satisfied: PyYAML in /home/falke/.local/lib/python3.6/site-packages (from blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (5.3.1)
Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /home/falke/.local/lib/python3.6/site-packages (from boto3==1.17.39->blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (0.10.0)
Requirement already satisfied: s3transfer<0.4.0,>=0.3.0 in /home/falke/.local/lib/python3.6/site-packages (from boto3==1.17.39->blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (0.3.7)
Requirement already satisfied: botocore<1.21.0,>=1.20.39 in /home/falke/.local/lib/python3.6/site-packages (from boto3==1.17.39->blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (1.20.112)
Requirement already satisfied: six in /home/falke/.local/lib/python3.6/site-packages (from gcloud>=0.18.3->pyrebase4==4.5->-r requirements.txt (line 2)) (1.15.0)
Requirement already satisfied: protobuf!=3.0.0.b2.post1,>=3.0.0b2 in /usr/local/lib/python3.6/dist-packages/protobuf-4.0.0rc2-py3.6.egg (from gcloud>=0.18.3->pyrebase4==4.5->-r requirements.txt (line 2)) (4.0.0rc2)
Requirement already satisfied: httplib2>=0.9.1 in /usr/lib/python3/dist-packages (from gcloud>=0.18.3->pyrebase4==4.5->-r requirements.txt (line 2)) (0.9.2)
Requirement already satisfied: googleapis-common-protos in /home/falke/.local/lib/python3.6/site-packages (from gcloud>=0.18.3->pyrebase4==4.5->-r requirements.txt (line 2)) (1.53.0)
Requirement already satisfied: zipp>=0.5 in /home/falke/.local/lib/python3.6/site-packages (from importlib-metadata<3,>=0.23->argcomplete==1.12.1->-r requirements.txt (line 3)) (3.1.0)
Requirement already satisfied: rsa>=3.1.4 in /home/falke/.local/lib/python3.6/site-packages (from oauth2client>=4.1.2->pyrebase4==4.5->-r requirements.txt (line 2)) (4.8)
Requirement already satisfied: pyasn1-modules>=0.0.5 in /home/falke/.local/lib/python3.6/site-packages (from oauth2client>=4.1.2->pyrebase4==4.5->-r requirements.txt (line 2)) (0.2.8)
Requirement already satisfied: pyasn1>=0.1.7 in /home/falke/.local/lib/python3.6/site-packages (from oauth2client>=4.1.2->pyrebase4==4.5->-r requirements.txt (line 2)) (0.4.8)
Requirement already satisfied: jwcrypto>=1.0.0 in /home/falke/.local/lib/python3.6/site-packages (from python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (1.0)
Requirement already satisfied: deprecated in /home/falke/.local/lib/python3.6/site-packages (from jwcrypto>=1.0.0->python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (1.2.13)
Requirement already satisfied: cryptography>=2.3 in /home/falke/.local/lib/python3.6/site-packages (from jwcrypto>=1.0.0->python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (36.0.0)
Requirement already satisfied: setuptools in /home/falke/.local/lib/python3.6/site-packages (from protobuf!=3.0.0.b2.post1,>=3.0.0b2->gcloud>=0.18.3->pyrebase4==4.5->-r requirements.txt (line 2)) (49.3.0)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/falke/.local/lib/python3.6/site-packages (from botocore<1.21.0,>=1.20.39->boto3==1.17.39->blobconverter>=1.2.6->depthai-sdk==1.1.3->-r requirements.txt (line 10)) (2.8.1)
Requirement already satisfied: cffi>=1.12 in /home/falke/.local/lib/python3.6/site-packages (from cryptography>=2.3->jwcrypto>=1.0.0->python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (1.15.0)
Requirement already satisfied: wrapt<2,>=1.10 in /home/falke/.local/lib/python3.6/site-packages (from deprecated->jwcrypto>=1.0.0->python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (1.13.3)
Requirement already satisfied: pycparser in /home/falke/.local/lib/python3.6/site-packages (from cffi>=1.12->cryptography>=2.3->jwcrypto>=1.0.0->python-jwt>=2.0.1->pyrebase4==4.5->-r requirements.txt (line 2)) (2.21)
Installing collected packages: opencv-python, opencv-contrib-python, depthai, depthai-sdk
Attempting uninstall: depthai-sdk
Found existing installation: depthai-sdk 1.1.3
Uninstalling depthai-sdk-1.1.3:
Successfully uninstalled depthai-sdk-1.1.3
Running setup.py develop for depthai-sdk
Successfully installed depthai-2.13.3.0 depthai-sdk-1.1.3 opencv-contrib-python-4.5.1.48 opencv-python-4.5.1.48
Requirement already satisfied: open3d==0.10.0.0 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements-optional.txt (line 1)) (0.10.0.0)
Requirement already satisfied: ffmpy3==0.2.4 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements-optional.txt (line 2)) (0.2.4)
Requirement already satisfied: pyusb==1.2.1 in /home/falke/.local/lib/python3.6/site-packages (from -r requirements-optional.txt (line 3)) (1.2.1)
Requirement already satisfied: matplotlib in /home/falke/.local/lib/python3.6/site-packages (from open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (3.3.0)
Requirement already satisfied: widgetsnbextension in /home/falke/.local/lib/python3.6/site-packages (from open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (3.5.2)
Requirement already satisfied: notebook in /home/falke/.local/lib/python3.6/site-packages (from open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (6.4.6)
Requirement already satisfied: numpy in /home/falke/.local/lib/python3.6/site-packages (from open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.19.4)
Requirement already satisfied: ipywidgets in /home/falke/.local/lib/python3.6/site-packages (from open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (7.6.5)
Requirement already satisfied: ipython>=4.0.0 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (7.16.2)
Requirement already satisfied: ipython-genutils~=0.2.0 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.2.0)
Requirement already satisfied: ipykernel>=4.5.1 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (5.5.6)
Requirement already satisfied: traitlets>=4.3.1 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (4.3.3)
Requirement already satisfied: nbformat>=4.2.0 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (5.1.3)
Requirement already satisfied: jupyterlab-widgets>=1.0.0 in /home/falke/.local/lib/python3.6/site-packages (from ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.0.2)
Requirement already satisfied: argon2-cffi in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (21.1.0)
Requirement already satisfied: jinja2 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (3.0.1)
Requirement already satisfied: prometheus-client in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.12.0)
Requirement already satisfied: jupyter-core>=4.6.1 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (4.9.1)
Requirement already satisfied: jupyter-client>=5.3.4 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (7.1.0)
Requirement already satisfied: nbconvert in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (6.0.7)
Requirement already satisfied: tornado>=6.1 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (6.1)
Requirement already satisfied: pyzmq>=17 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (22.2.1)
Requirement already satisfied: terminado>=0.8.3 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.12.1)
Requirement already satisfied: Send2Trash>=1.8.0 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.8.0)
Requirement already satisfied: nest-asyncio>=1.5 in /home/falke/.local/lib/python3.6/site-packages (from notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.5.1)
Requirement already satisfied: python-dateutil>=2.1 in /home/falke/.local/lib/python3.6/site-packages (from matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/falke/.local/lib/python3.6/site-packages (from matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.4.7)
Requirement already satisfied: pillow>=6.2.0 in /home/falke/.local/lib/python3.6/site-packages (from matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (7.2.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/falke/.local/lib/python3.6/site-packages (from matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.2.0)
Requirement already satisfied: cycler>=0.10 in /home/falke/.local/lib/python3.6/site-packages (from matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.10.0)
Requirement already satisfied: six in /home/falke/.local/lib/python3.6/site-packages (from cycler>=0.10->matplotlib->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.15.0)
Requirement already satisfied: decorator in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (5.1.0)
Requirement already satisfied: pexpect in /usr/lib/python3/dist-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (4.2.1)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (3.0.23)
Requirement already satisfied: setuptools>=18.5 in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (49.3.0)
Requirement already satisfied: jedi<=0.17.2,>=0.10 in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.17.2)
Requirement already satisfied: backcall in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.2.0)
Requirement already satisfied: pickleshare in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.7.5)
Requirement already satisfied: pygments in /home/falke/.local/lib/python3.6/site-packages (from ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.6.1)
Requirement already satisfied: entrypoints in /home/falke/.local/lib/python3.6/site-packages (from jupyter-client>=5.3.4->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.3)
Requirement already satisfied: jsonschema!=2.5.0,>=2.4 in /usr/lib/python3/dist-packages (from nbformat>=4.2.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.6.0)
Requirement already satisfied: ptyprocess in /home/falke/.local/lib/python3.6/site-packages (from terminado>=0.8.3->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.7.0)
Requirement already satisfied: cffi>=1.0.0 in /home/falke/.local/lib/python3.6/site-packages (from argon2-cffi->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.15.0)
Requirement already satisfied: MarkupSafe>=2.0 in /home/falke/.local/lib/python3.6/site-packages (from jinja2->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.0.1)
Requirement already satisfied: bleach in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (4.1.0)
Requirement already satisfied: testpath in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.5.0)
Requirement already satisfied: defusedxml in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.6.0)
Requirement already satisfied: nbclient<0.6.0,>=0.5.0 in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.5.9)
Requirement already satisfied: mistune<2,>=0.8.1 in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.8.4)
Requirement already satisfied: pandocfilters>=1.4.1 in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.5.0)
Requirement already satisfied: jupyterlab-pygments in /home/falke/.local/lib/python3.6/site-packages (from nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.1.2)
Requirement already satisfied: pycparser in /home/falke/.local/lib/python3.6/site-packages (from cffi>=1.0.0->argon2-cffi->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (2.21)
Requirement already satisfied: parso<0.8.0,>=0.7.0 in /home/falke/.local/lib/python3.6/site-packages (from jedi<=0.17.2,>=0.10->ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.7.1)
Requirement already satisfied: async-generator in /home/falke/.local/lib/python3.6/site-packages (from nbclient<0.6.0,>=0.5.0->nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (1.10)
Requirement already satisfied: wcwidth in /home/falke/.local/lib/python3.6/site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=4.0.0->ipywidgets->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.2.5)
Requirement already satisfied: webencodings in /usr/lib/python3/dist-packages (from bleach->nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (0.5)
Requirement already satisfied: packaging in /home/falke/.local/lib/python3.6/site-packages (from bleach->nbconvert->notebook->open3d==0.10.0.0->-r requirements-optional.txt (line 1)) (20.4)
and when i run python3 depthai_demo.py I get the same error as posted before. Any idea?
What OS is this on, Ubuntu 18.04? I see there Python 3.6 (default on 18.04).
It's possible to run also without the Qt GUI, with the old OpenCV interface, but most of the options there need to be set from command line:
python3 depthai_demo.py -gt cv
yes, its 18.04
python3 depthai_demo.py -gt cv
does work. I guess I need to live with it for now. Thanks!
Hi @JaCoHSU ,
I installed Ubuntu 18.04 and I was able to make it work on this PR - https://github.com/luxonis/depthai/pull/571. The root cause of the issue is the QT library conflict between opencv-python
and PyQt5
, like mentioned in this issue on Qt forum.
To make the Qt GUI work on Ubuntu 18.04 please use the following commands
$ cd depthai # repo root
$ git pull
$ git checkout ubuntu_1804_fix
$ export LD_LIBRARY_PATH="$HOME/.local/lib/python3.6/site-packages/PyQt5/Qt5/lib/
$ python3 depthai_demo.py
Will check if I can work around setting LD_LIBRARY_PATH, so that the script can load everything on its own.
Hi. I have the same problem under Ubuntu 20.04:
(oak-d) luis@ryzenLinux:/media/linuxDev/Oak-D/depthai(main)$ python3 depthai_demo.py
Using depthai module from: /media/linuxDev/envs/oak-d/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
Depthai version installed: 2.13.3.0
QObject::moveToThread: Current thread (0x22d2060) is not the object's thread (0x21fbc70).
Cannot move to target thread (0x22d2060)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/media/linuxDev/envs/oak-d/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl.
Aborted (core dumped)
Running with the CV GUI works fine (python3 depthai_demo.py -gt cv
)
Thanks for the report. Investigating.
Hey @VanDavv your suggestion worked for me. The gui opens :) Some core dumbs occur from time to time, but other than that it seems to work. thanks!
@JaCoHSU happy that it helped!
@piponazo could you try again with the latest main? I added the supervisor mode that should now set these flags automatically - #573
Hi @VanDavv
I am also having this problem- (I've got an 18.04 system for compatibility with other applications) It lloks like the fix has been removed from git ??- I get the following error
thanks
Andrew
ubuntu9@ubuntu9-HP-Z620-Workstation:~/depthai$ git pull
Already up to date.
ubuntu9@ubuntu9-HP-Z620-Workstation:~/depthai$ git checkout ubuntu_1804_fix
error: pathspec 'ubuntu_1804_fix' did not match any file(s) known to git.
ubuntu9@ubuntu9-HP-Z620-Workstation:~/depthai$
Yeah, the branch was deleted as cleanup, it was merged in the meantime, in PR https://github.com/luxonis/depthai/pull/571.
Could you post the logs (terminal prints) running with latest main
?
Hi @alex-luxonis
Is this what you mean ??
I get the 'color' & 'depth' windows, just not the main GUI
ubuntu9@ubuntu9-HP-Z620-Workstation:~/depthai$ source depthai/bin/activate
(depthai) ubuntu9@ubuntu9-HP-Z620-Workstation:~/depthai$ python3 depthai_demo.pyUsing depthai module from: /home/ubuntu9/depthai/depthai/lib/python3.9/site-packages/depthai.cpython-39-x86_64-linux-gnu.so
Depthai version installed: 2.15.3.0.dev+7b7cd9224b0a31c684231e880beff9ae38bade6c
Traceback (most recent call last):
File "/home/ubuntu9/depthai/depthai_demo.py", line 1079, in <module>
runQt()
File "/home/ubuntu9/depthai/depthai_demo.py", line 604, in runQt
from gui.main import DemoQtGui
File "/home/ubuntu9/depthai/gui/main.py", line 7, in <module>
from PyQt5.QtQml import QQmlApplicationEngine, qmlRegisterType, qmlRegisterSingletonType, QQmlEngine
ImportError: /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2: symbol krb5_ser_context_init version krb5_3_MIT not defined in file libkrb5.so.3 with link time reference
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
Error while running demo script... Command '"/home/ubuntu9/depthai/depthai/bin/python3" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 1.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 18443010F160F50800 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
QObject::moveToThread: Current thread (0x562ad63ebb70) is not the object's thread (0x562ad7241980).
Cannot move to target thread (0x562ad63ebb70)
QObject::moveToThread: Current thread (0x562ad63ebb70) is not the object's thread (0x562ad7241980).
Cannot move to target thread (0x562ad63ebb70)
QObject::moveToThread: Current thread (0x562ad63ebb70) is not the object's thread (0x562ad7241980).
Cannot move to target thread (0x562ad63ebb70)
QObject::moveToThread: Current thread (0x562ad63ebb70) is not the object's thread (0x562ad7241980).
Cannot move to target thread (0x562ad63ebb70)
I am having the exact same issue as you @barney2074. Fresh Ubuntu 22.04 VM on VMware workstation. Used the install requirements script. The camera connects just fine and the demo starts but I only get the color and depth windows. When I run natively on Windows 10 I get the full GUI just fine
Oh yes sorry about the delay. So this means the QT GUI has failed. And when that happens, the demo automatically falls back to the OpenCV GUI.
We're in the process of re-writing the demo to use a web GUI instead. ETA probably 3-4 months. For now, if the QT GUI doesn't show up, the OpenCV GUI can be used with command line arguments to specify. There's also an experimental webGUI, but we're abandoning that for an alternate approach.
Thoughts?
Sorry again about the delay.
Hi Brandon
thanks for the response I've got it working (it is a little intermittent) on a 20.04 system, so I'm fine for now & will look forward to the webGUI
thanks
Andrew
Great thank you!
Hi Brandon
thanks for the response I've got it working (it is a little intermittent) on a 20.04 system, so I'm fine for now & will look forward to the webGUI
thanks
Andrew
Hey, just wondering what you changed to get the QT GUI working? I have a 22.04 system that I am wondering if that is the issue. The OpenCV GUI works alright (using CLI args. to change settings) but I would prefer the QT GUI. Thanks!
@Luxonis-Brandon Looking forward to testing out the webGUI!
Hi Vincent
I'm not sure- I started with a fresh 20.04.4 LTS (note- not 22.04) build
I don't know much about QT & if it is reliant on specific graphics drivers- but went through some real headaches with NVIDIA drivers, CUDA, cuDNN etc for other reasons
Andrew
Hi Andrew,
Awesome! Thanks for the info. I will give it a try.
Appreciate your help, Vincent
Hey guys,
My Oak-D Lite just arrived. I wanted to test it with depthai. What I did is this:
Installation seemed to work without errors but when I executed this:
python3 depthai_demo.py
I get the following error. Does anyone know how to fix it or why this error occured?