depthai
depthai copied to clipboard
[BUG] {python3 install_requirements.py failing}
I have a RPi 4 with Ubuntu Jammy 22.04 and an Oak-D Lite connected through the USB 3 connector. I cloned the depthai github repo and am stepping through the installation. Everything seems to work until I get to the install_requirements.py line:
ubuntu@tbot:~/depthai$ python3 install_requirements.py
pip 23.3 from /home/ubuntu/.local/lib/python3.10/site-packages/pip (python 3.10)
Requirement already satisfied: pip in /home/ubuntu/.local/lib/python3.10/site-packages (23.3)
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f2197b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f219960>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f219e10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f219fc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffff9f21a170>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Skipping opencv-python as it is not installed.
WARNING: Skipping opencv-contrib-python as it is not installed.
WARNING: Skipping depthai as it is not installed.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/, https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
Ignoring pyqt5: markers 'platform_machine != "armv6l" and platform_machine != "armv7l" and platform_machine != "aarch64" and platform_machine != "arm64"' don't match your environment
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667abc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667aec0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667b070>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667b220>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667b3d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667b850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667bac0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa6679f60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667a950>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667afb0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/requests/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667abc0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-depthai-data-local/wheels/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667be20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-depthai-data-local/wheels/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa667bfd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-depthai-data-local/wheels/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a81c0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-depthai-data-local/wheels/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a8370>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-depthai-data-local/wheels/requests/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a85b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-python-snapshot-local/requests/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a8880>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-python-snapshot-local/requests/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a8a60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-python-snapshot-local/requests/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a8c40>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-python-snapshot-local/requests/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0xffffa66a8e20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /artifactory/luxonis-python-snapshot-local/requests/
ERROR: Could not find a version that satisfies the requirement requests==2.26.0 (from versions: none)
ERROR: No matching distribution found for requests==2.26.0
Traceback (most recent call last):
File "/home/ubuntu/depthai/install_requirements.py", line 44, in <module>
subprocess.check_call(pip_package_install + ["-r", "requirements.txt"], cwd=script_directory)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '-U', '--prefer-binary', '--user', '-r', 'requirements.txt']' returned non-zero exit status 1.
I'm not sure what to expect, but this isn't correct. Any advice one what to do?
When you see this failing - do you still have an Internet connection, can access other online resources? Seems a network connection could not be established anylonger.
Could it be a power-supply issue (while installing the SoC is heating up, a lot of processing power required), or simply a loose connection?
Interesting. I turned it off and let it cool down. Then restarted and then it installed fine. Not sure if it is a loose connection or over power issue. I have a feeling whatever the problem is that it will resurface.
There seems to be some connection problem, although now with the USB. When I run the first demo, it initially works (I see the depth and color images), and then after a couple seconds it fails:
python3 depthai_demo.py -gt cv
Using depthai module from: /home/ubuntu/.local/lib/python3.10/site-packages/depthai.cpython-310-aarch64-linux-gnu.so
Depthai version installed: 2.21.2.0
Setting up demo...
Available devices:
[0] 19443010817AF71200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
Stopping demo...
=== TOTAL FPS ===
[color]: 6.4
[disparity]: 6.4
[disparityColor]: 6.4
[nn]: 0.0
Traceback (most recent call last):
File "/home/ubuntu/depthai/depthai_demo.py", line 1053, in <module>
runOpenCv()
File "/home/ubuntu/depthai/depthai_demo.py", line 1043, in runOpenCv
demo.run_all(confManager)
File "/home/ubuntu/depthai/depthai_demo.py", line 133, in run_all
self.run()
File "/home/ubuntu/depthai/depthai_demo.py", line 317, in run
self.loop()
File "/home/ubuntu/depthai/depthai_demo.py", line 373, in loop
self._pv.prepareFrames(callback=self.onNewFrame)
File "/home/ubuntu/.local/lib/python3.10/site-packages/depthai_sdk/managers/preview_manager.py", line 148, in prepareFrames
packet = queue.tryGet()
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'color' (X_LINK_ERROR)'
Is your HW operating under rough conditions like heat, vibrations? Do you run your "RPi 4" with a battery, would you have a chance to use another power-supply? Could it be maybe a broken "RPi 4"?
Can you run any other heavy job on the system like compressing&decompressing (ZIP?, tar& ), or video-transcoding (VLC? gstreamer?) to see if your HW is "stable under heavy load"?
It is using a battery, but no harsh conditions. I might be able to try a different power supply. I could also try some heavy jobs, although not sure how to measure stability.
There could be peaks in energy consumption which the battery temporarily could not provide. A bigger power-supply (or additional battery/batteries in parallel to the first) might help...
Compress a big file (e.g. video-file) and create a SHA checksum - and compare with the checksum of the same file, but calculated on a different machine.
Transcode a video-file - a visual inspection might not reveal optical artifacts - but maybe the transcoding will generate error-/warning-messages.
Sorry if all this leads to nothing... energy consumption (or heat?, or loose connection?) is just a guess...