Hi Jaka,
Thanks for the reply. Actually what i need to use is the ros wrapper that publishes stereo image pairs.
But i tested depthai-viewer, and it did not work neither. Here is the environment and situation.
Ubuntu 20.04
python 3.8.10 (venv)
pip3 (23.2.1)
I tried pip3 install depthai-viewer, also using the whl from this page https://github.com/luxonis/depthai-viewer/releases/tag/v0.1.4
After launching depthai-viewer (0.1.4), it installs dependencies but failed.
> depthai-viewer
[2023-08-30T03:00:21Z INFO winit::platform_impl::platform::x11::window] Guessed window scale factor: 2
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
depthai-sdk 1.11.0 requires depthai==2.21.2, but you have depthai 2.22.0.0 which is incompatible.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/install_requirements.py", line 44, in download_blobs
import blobconverter
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/blobconverter/__init__.py", line 11, in <module>
import boto3
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/boto3/__init__.py", line 17, in <module>
from boto3.session import Session
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/boto3/session.py", line 17, in <module>
import botocore.session
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/session.py", line 26, in <module>
import botocore.client
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/client.py", line 15, in <module>
from botocore import waiter, xform_name
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/waiter.py", line 18, in <module>
from botocore.docs.docstring import WaiterDocstring
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/docs/__init__.py", line 15, in <module>
from botocore.docs.service import ServiceDocumenter
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/docs/service.py", line 13, in <module>
from botocore.docs.bcdoc.restdoc import DocumentStructure
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/docs/bcdoc/restdoc.py", line 17, in <module>
from botocore.compat import OrderedDict
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages/botocore/compat.py", line 31, in <module>
from dateutil.tz import tzlocal
ModuleNotFoundError: No module named 'dateutil'
Got exit status: Exited(0)
Log output: Collecting pip
Using cached pip-23.2.1-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.0.2
Uninstalling pip-20.0.2:
Successfully uninstalled pip-20.0.2
Successfully installed pip-23.2.1
Collecting depthai-sdk==1.11.0
Obtaining dependency information for depthai-sdk==1.11.0 from https://files.pythonhosted.org/packages/53/d2/9bdaa109bc6369aad9a00e88d52d41d7036242c750282a7aa08cbcb6ef06/depthai_sdk-1.11.0-py3-none-any.whl.metadata
Using cached depthai_sdk-1.11.0-py3-none-any.whl.metadata (3.3 kB)
Collecting opencv-contrib-python>4 (from depthai-sdk==1.11.0)
Obtaining dependency information for opencv-contrib-python>4 from https://files.pythonhosted.org/packages/4b/5e/b3d986289c4bbb57fbad3e72e50722484123c501c6be7314f30812862a62/opencv_contrib_python-4.8.0.76-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Using cached opencv_contrib_python-4.8.0.76-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB)
Collecting blobconverter>=1.4.1 (from depthai-sdk==1.11.0)
Obtaining dependency information for blobconverter>=1.4.1 from https://files.pythonhosted.org/packages/6c/b0/271469c04e3639dbc13eb9f3ba6b68f3b2b3d3d0f7ada90daf1eed447ce1/blobconverter-1.4.2-py3-none-any.whl.metadata
Using cached blobconverter-1.4.2-py3-none-any.whl.metadata (7.5 kB)
Collecting pytube>=12.1.0 (from depthai-sdk==1.11.0)
Using cached pytube-15.0.0-py3-none-any.whl (57 kB)
Collecting depthai==2.21.2 (from depthai-sdk==1.11.0)
Using cached depthai-2.21.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.5 MB)
Collecting PyTurboJPEG==1.6.4 (from depthai-sdk==1.11.0)
Using cached PyTurboJPEG-1.6.4-py3-none-any.whl
Collecting marshmallow==3.17.0 (from depthai-sdk==1.11.0)
Using cached marshmallow-3.17.0-py3-none-any.whl (48 kB)
Collecting xmltodict (from depthai-sdk==1.11.0)
Using cached xmltodict-0.13.0-py2.py3-none-any.whl (10.0 kB)
Collecting sentry-sdk==1.21.0 (from depthai-sdk==1.11.0)
Using cached sentry_sdk-1.21.0-py2.py3-none-any.whl (199 kB)
Collecting depthai-pipeline-graph==0.0.5 (from depthai-sdk==1.11.0)
Obtaining dependency information for depthai-pipeline-graph==0.0.5 from https://files.pythonhosted.org/packages/92/1f/c89b97e23e548c3d99544e42b67522fdbcc673f898b49246f40a6a00c5cb/depthai_pipeline_graph-0.0.5-py3-none-any.whl.metadata
Using cached depthai_pipeline_graph-0.0.5-py3-none-any.whl.metadata (8.8 kB)
Collecting numpy>=1.21 (from depthai-sdk==1.11.0)
Obtaining dependency information for numpy>=1.21 from https://files.pythonhosted.org/packages/98/5d/5738903efe0ecb73e51eb44feafba32bdba2081263d40c5043568ff60faf/numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Collecting Qt.py>=1.3.0 (from depthai-pipeline-graph==0.0.5->depthai-sdk==1.11.0)
Using cached Qt.py-1.3.8-py2.py3-none-any.whl (25 kB)
Collecting packaging>=17.0 (from marshmallow==3.17.0->depthai-sdk==1.11.0)
Using cached packaging-23.1-py3-none-any.whl (48 kB)
Requirement already satisfied: certifi in /home/jeffxie/.pip/dist (from sentry-sdk==1.21.0->depthai-sdk==1.11.0) (2023.7.22)
Requirement already satisfied: urllib3>=1.26.11 in /home/jeffxie/.pip/dist (from sentry-sdk==1.21.0->depthai-sdk==1.11.0) (1.26.16)
Requirement already satisfied: requests in /home/jeffxie/.pip/dist (from blobconverter>=1.4.1->depthai-sdk==1.11.0) (2.31.0)
Requirement already satisfied: PyYAML in /home/jeffxie/.pip/dist (from blobconverter>=1.4.1->depthai-sdk==1.11.0) (6.0)
Collecting boto3 (from blobconverter>=1.4.1->depthai-sdk==1.11.0)
Obtaining dependency information for boto3 from https://files.pythonhosted.org/packages/be/ed/c65f67d71526fa7cf2f9d09ea5b3c81ad3eba9c9e324fabdffdad13f00de/boto3-1.28.37-py3-none-any.whl.metadata
Using cached boto3-1.28.37-py3-none-any.whl.metadata (6.7 kB)
Collecting types-PySide2 (from Qt.py>=1.3.0->depthai-pipeline-graph==0.0.5->depthai-sdk==1.11.0)
Obtaining dependency information for types-PySide2 from https://files.pythonhosted.org/packages/a9/c5/f2e5cc01ab9edd03d50588d11dcfba454ebb01784a76e76ee3bef754c049/types_pyside2-5.15.2.1.6-py2.py3-none-any.whl.metadata
Using cached types_pyside2-5.15.2.1.6-py2.py3-none-any.whl.metadata (8.1 kB)
Collecting botocore<1.32.0,>=1.31.37 (from boto3->blobconverter>=1.4.1->depthai-sdk==1.11.0)
Obtaining dependency information for botocore<1.32.0,>=1.31.37 from https://files.pythonhosted.org/packages/28/01/6a5eebec8fe82bacfb6321e3263d52eb01ca3370ce997b65c2cc96856f2c/botocore-1.31.37-py3-none-any.whl.metadata
Using cached botocore-1.31.37-py3-none-any.whl.metadata (6.0 kB)
Collecting jmespath<2.0.0,>=0.7.1 (from boto3->blobconverter>=1.4.1->depthai-sdk==1.11.0)
Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
Collecting s3transfer<0.7.0,>=0.6.0 (from boto3->blobconverter>=1.4.1->depthai-sdk==1.11.0)
Obtaining dependency information for s3transfer<0.7.0,>=0.6.0 from https://files.pythonhosted.org/packages/d9/17/a3b666f5ef9543cfd3c661d39d1e193abb9649d0cfbbfee3cf3b51d5af02/s3transfer-0.6.2-py3-none-any.whl.metadata
Using cached s3transfer-0.6.2-py3-none-any.whl.metadata (1.8 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/jeffxie/.pip/dist (from requests->blobconverter>=1.4.1->depthai-sdk==1.11.0) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /home/jeffxie/.pip/dist (from requests->blobconverter>=1.4.1->depthai-sdk==1.11.0) (3.4)
Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /home/jeffxie/.pip/dist (from botocore<1.32.0,>=1.31.37->boto3->blobconverter>=1.4.1->depthai-sdk==1.11.0) (2.8.2)
Requirement already satisfied: six>=1.5 in /home/jeffxie/.pip/dist (from python-dateutil<3.0.0,>=2.1->botocore<1.32.0,>=1.31.37->boto3->blobconverter>=1.4.1->depthai-sdk==1.11.0) (1.16.0)
Using cached depthai_sdk-1.11.0-py3-none-any.whl (216 kB)
Using cached depthai_pipeline_graph-0.0.5-py3-none-any.whl (123 kB)
Using cached blobconverter-1.4.2-py3-none-any.whl (10 kB)
Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
Using cached opencv_contrib_python-4.8.0.76-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (67.8 MB)
Using cached boto3-1.28.37-py3-none-any.whl (135 kB)
Using cached botocore-1.31.37-py3-none-any.whl (11.1 MB)
Using cached s3transfer-0.6.2-py3-none-any.whl (79 kB)
Using cached types_pyside2-5.15.2.1.6-py2.py3-none-any.whl (572 kB)
Installing collected packages: types-PySide2, xmltodict, sentry-sdk, Qt.py, pytube, packaging, numpy, jmespath, depthai, PyTurboJPEG, opencv-contrib-python, marshmallow, depthai-pipeline-graph, botocore, s3transfer, boto3, blobconverter, depthai-sdk
Successfully installed PyTurboJPEG-1.6.4 Qt.py-1.3.8 blobconverter-1.4.2 boto3-1.28.37 botocore-1.31.37 depthai-2.21.2.0 depthai-pipeline-graph-0.0.5 depthai-sdk-1.11.0 jmespath-1.0.1 marshmallow-3.17.0 numpy-1.24.4 opencv-contrib-python-4.8.0.76 packaging-23.1 pytube-15.0.0 s3transfer-0.6.2 sentry-sdk-1.21.0 types-PySide2-5.15.2.1.6 xmltodict-0.13.0
Requirement already satisfied: numpy>=1.23 in /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 1)) (1.24.4)
Collecting pyarrow==10.0.1 (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 2))
Using cached pyarrow-10.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.0 MB)
Requirement already satisfied: setuptools in /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 3)) (44.0.0)
Collecting ahrs (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 4))
Using cached AHRS-0.3.1-py3-none-any.whl (197 kB)
Collecting depthai==2.22.0.0 (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 6))
Obtaining dependency information for depthai==2.22.0.0 from https://files.pythonhosted.org/packages/a2/b2/7656a49d55f445501c3ebb3f8e10251f84afa74ee683705adc96b6e1cf4b/depthai-2.22.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Using cached depthai-2.22.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (8.7 kB)
Collecting websockets (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 7))
Using cached websockets-11.0.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (130 kB)
Collecting pydantic==1.9 (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 8))
Using cached pydantic-1.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.6 MB)
Collecting deprecated (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 9))
Obtaining dependency information for deprecated from https://files.pythonhosted.org/packages/20/8d/778b7d51b981a96554f29136cd59ca7880bf58094338085bcf2a979a0e6a/Deprecated-1.2.14-py2.py3-none-any.whl.metadata
Using cached Deprecated-1.2.14-py2.py3-none-any.whl.metadata (5.4 kB)
Requirement already satisfied: sentry-sdk in /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4/lib/python3.8/site-packages (from -r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 10)) (1.21.0)
Collecting typing-extensions>=3.7.4.3 (from pydantic==1.9->-r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 8))
Obtaining dependency information for typing-extensions>=3.7.4.3 from https://files.pythonhosted.org/packages/ec/6b/63cc3df74987c36fe26157ee12e09e8f9db4de771e0f3404263117e75b95/typing_extensions-4.7.1-py3-none-any.whl.metadata
Using cached typing_extensions-4.7.1-py3-none-any.whl.metadata (3.1 kB)
Collecting wrapt<2,>=1.10 (from deprecated->-r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 9))
Using cached wrapt-1.15.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (81 kB)
Requirement already satisfied: certifi in /home/jeffxie/.pip/dist (from sentry-sdk->-r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 10)) (2023.7.22)
Requirement already satisfied: urllib3>=1.26.11 in /home/jeffxie/.pip/dist (from sentry-sdk->-r /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/requirements.txt (line 10)) (1.26.16)
Using cached depthai-2.22.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (10.6 MB)
Using cached Deprecated-1.2.14-py2.py3-none-any.whl (9.6 kB)
Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Installing collected packages: wrapt, websockets, typing-extensions, pyarrow, depthai, ahrs, pydantic, deprecated
Attempting uninstall: depthai
Found existing installation: depthai 2.21.2.0
Uninstalling depthai-2.21.2.0:
Successfully uninstalled depthai-2.21.2.0
Successfully installed ahrs-0.3.1 deprecated-1.2.14 depthai-2.22.0.0 pyarrow-10.0.1 pydantic-1.9.0 typing-extensions-4.7.1 websockets-11.0.3 wrapt-1.15.0
Creating virtual environment...
Error occurred during dependency installation: Command '['/home/jeffxie/depthai2/bin/python', '-c', 'from depthai_viewer.install_requirements import download_blobs; download_blobs()']' returned non-zero exit status 1.
Traceback (most recent call last):
File "/home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/install_requirements.py", line 113, in create_venv_and_install_dependencies
subprocess.run(
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/jeffxie/depthai2/bin/python', '-c', 'from depthai_viewer.install_requirements import download_blobs; download_blobs()']' returned non-zero exit status 1.
Deleting partially created virtual environment: /home/jeffxie/depthai2/lib/python3.8/site-packages/depthai_viewer/venv-0.1.4