Windows Setup with Oak-D Lite has an issue
I also got this issue. On Windows 10 64 bit, with Python 3.10.0.
Errorlog:
Using depthai module from: C:\Users\Marcel-Jan\AppData\Roaming\Python\Python310\site-packages\depthai.cp310-win_amd64.pyd
Depthai version installed: 2.13.3.0
Setting up demo...
Available devices:
[0] 1944301091D6F31200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
Error while running demo script... Command '"D:\Python\Python310\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221226505.
- Edited
Having similar issues on Windows 10
========= Starting: Launcher (2022-01-02 16:06:57.455706) =========
HEAD detached at v3.0.7
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: launcher/windows/build.ps1
deleted: launcher/windows/download_dependencies.ps1
deleted: launcher/windows/inno_setup.ps1
Untracked files:
(use "git add <file>..." to include in what will be committed)
false/
no changes added to commit (use "git add" and/or "git commit -a")
Available DepthAI versions: ['v0.3.0.0', 'v0.4.0.0', 'v0.4.1.1', 'v1.0.0', 'v1.0.0.0', 'v2.0.0', 'v2.10.0.0', 'v2.7.2.0', 'v2.8.0.0', 'v2.9.0.0', 'v3.0.0', 'v3.0.1', 'v3.0.2', 'v3.0.3', 'v3.0.4', 'v3.0.5', 'v3.0.6', 'v3.0.7']
Current tag: v3.0.7
, ver: 3.0.7
Using depthai module from: C:\Users\frank\AppData\Local\Programs\DepthAI\venv\lib\site-packages\depthai.cp39-win_amd64.pyd
Depthai version installed: 2.13.3.0
Setting up demo...
Available devices:
[0] 18443010318BAC1200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
Error while running demo script... Command '"C:\Users\frank\AppData\Local\Programs\DepthAI\venv\Scripts\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221226505.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 18443010318BAC1200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for ColorCamera node and color xlink stream...
then GUI shuts down
Couple of things I've tried, based on things I found when searching for this exit status:
- Updated my NVidia driver to the latest.
- Installed the latest Python (3.10.1) on the C: drive instead of the D: drive
But that wasn't it.
I used the usb3.0 interface and the problem was solved.
frankgestrada Marcel-Jan could you try using USB3 cable? We don't have a solution for these Windows error codes yet
Luxonis-Lukasz I've ordered a new USB3 to USB C cable, just to be sure that I have a high speed one. It will arive tomorrow. I will test it then.
Luxonis-Lukasz Definitely the cable. I am up and running now. Thank you.
Yes, I got it working with a new high speed USB3 cable.
Hello, I tried to launch the DepthAI-setup-v3.0.7.exe but it doesn't open at all.
Any idea what could be the cause ?
Thanks
Hi guys,
Could you give v3.0.8 a try? https://github.com/luxonis/depthai/releases/tag/v3.0.8
I tested it on my Windows machine, which was failing with the above mentioned exit codes, but with the performance optimizations, this issue seems to be resolved, tried both USB2, USB3 and PoE devices with both QT and CV GUI and they all work
I've installed v3.0.8, but it didn't work with the old USB-C cable. I got the same error.
Also, the DepthAI icon in the Start Menu didn't go anywhere. Windows seems to want to open an .ico file.
Also, the DepthAI icon in the Start Menu didn't go anywhere. Windows seems to want to open an .ico file.
@Marcel-Jan could you elaborate on this? After uninstall, all files should be removed, so maybe we'll need to make adjustments to the installer here
Luxonis-Lukasz I've uninstalled all previous versions of DepthAI. After installing 3.0.8 again, I got a different exit status on the "lesser" USB cable:
Available devices:
[0] 1944301091D6F31200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
Error while running demo script... Command '"C:\Users\Marcel-Jan\AppData\Local\Programs\DepthAI\venv\Scripts\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221225477.
Waiting 5s for the device to be discoverable again...
When I try starting DepthAI from the Start Menu, I get "How do you want to open this file" and it says it's an .ico file.
The shortcut in the start menu indeed points to "C:\Users<myuser>\AppData\Local\Programs\DepthAI\logo_only_EBl_icon.ico"
Thanks a lot Marcel-Jan! The icon issue should be resolved pretty quickly, with the windows one we don't have a solution yet, will be investigating and circle back
Luxonis-Lukasz To be sure: with the high speed USB3 cable I don't get that exit status error of course.
Good day All,
My apologies for not checking in and monitoring my thread on this. Sadly, all is still a no-go on my side. I tried to install the latest version (v.3.0.9) using the Windows Setup program and it fails to install. Below is the last few lines showing the error
`Installing collected packages: opencv-python, opencv-contrib-python, depthai, pyqt5, depthai-sdk, argcomplete
Message Box (Error Installing DepthAI Requirements): Couldn't install DepthAI requirements. Check internet connection and try again. Log available at: E:\Software\DepthAI\depthai\launcher\log.dat
Install dependencies call failed with return code: 1, message: WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'E:\Software\DepthAI\venv\Lib\site-packages\PyQt5\QtCore.pyd'
Check the permissions.
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
WARNING: Ignoring invalid distribution -yqt5 (e:\software\depthai\venv\lib\site-packages)
Traceback (most recent call last):
File "E:\Software\DepthAI\depthai\install_requirements.py", line 47, in <module>
subprocess.check_call(pip_package_install + ["-r", "requirements.txt"], cwd=scriptDirectory)
File "E:\Software\DepthAI\WPy64-3950\python-3.9.5.amd64\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['E:\Software\DepthAI\venv\Scripts\python.exe', '-m', 'pip', 'install', '-U', '--prefer-binary', '-r', 'requirements.txt']' returned non-zero exit status 1.`
I then uninstalled everything and performed the manual installation via git, etc. All installed, but when I try and run the demo script, I get the same error as before:
E:\Software\depthai>python depthai_demo.py
Using depthai module from: C:\Users\sam\AppData\Roaming\Python\Python39\site-packages\depthai.cp39-win_amd64.pyd
Depthai version installed: 2.14.1.0.dev+27fa4519f289498e84768ab5229a1a45efb7e4df
Setting up demo...
Available devices:
[0] 18443010F158AB1200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for MonoCamera node and left xlink stream...
Creating MJPEG link for MonoCamera node and right xlink stream...
Creating MJPEG link for ColorCamera node and color xlink stream...
Error while running demo script... Command '"C:\Users\sam\AppData\Local\Programs\Python\Python39\python.exe" depthai_demo.py --noSupervisor --guiType qt' returned non-zero exit status 3221226505.
Waiting 5s for the device to be discoverable again...
Setting up demo...
Available devices:
[0] 18443010F158AB1200 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.HIGH
Enabling low-bandwidth mode due to low USB speed... (speed: UsbSpeed.HIGH)
Creating MJPEG link for ColorCamera node and color xlink stream...
Traceback (most recent call last):
File "E:\Software\depthai\depthai_demo.py", line 998, in <module>
s.runDemo(args)
File "E:\Software\depthai\depthai_helpers\supervisor.py", line 46, in runDemo
subprocess.check_call(' '.join([f'"{sys.executable}"', "depthai_demo.py"] + new_args), env=new_env, shell=True, cwd=repo_root)
File "C:\Users\sam\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '"C:\Users\sam\AppData\Local\Programs\Python\Python39\python.exe" depthai_demo.py --noSupervisor --guiType cv' returned non-zero exit status 3221226505.
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit
I never had a chance to try and install on another Win10 machine, but will try to do so over the next few days.
Cheers,
Sam
sam512bb Thanks for reporting both of these!
For the first issue, I'll share it internally and we'll investigate it further.
For the second issue, could you try running the demo either with -usbs usb2
flag or connecting your DepthAI device with a USB3 cable and see if that helps?