Does this improve your situation?
Starting Depthai Viewer
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker>python3 main.p
[18443010F141790E00] [1.7] [1723831363.772] [host] [warning] Device crashed, but no crash dump could be extracted.
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 25, in <module>
oak.start(blocking=True)
File "C:\Users\sale4088\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\depthai_sdk\oak_camera.py", line 268, in start
self.build() # Build the pipeline
File "C:\Users\sale4088\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\depthai_sdk\oak_camera.py", line 349, in build
self._init_device()
File "C:\Users\sale4088\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\depthai_sdk\oak_camera.py", line 211, in _init_device
self._oak.device = dai.Device(
RuntimeError: Device already closed or disconnected: io error
power cycle the device and try again. this error seems unrelated
I think it is now working
Thank you for all your help
My apologies if I was short tempered, I was extremely nervous for tomorrows meeting and needed everything to be working well.
Thank you again
My apologies if I was short tempered, I was extremely nervous for tomorrows meeting and needed everything to be working well.
hahah, I get it. Really sorry for the inconvenience. But for the future. NEVER work inside of the installers repository.... It is not safe!!! And make backups of things!
Wait, it seems to be not working again
Wait, it seems to be not working again
What is the issue now?
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker>python main.p
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 3, in <module>
from depthai_sdk import OakCamera, TrackerPacket, Visualizer, TextPosition
ModuleNotFoundError: No module named 'depthai_sdk'
I removed the versions since I wanted it to function and not be confined to a certain version, but maybe Ill try adding it back?
This seems like an environment error
Not sure why, but make sure you have depthai_sdk installed.
can install it via python -m pip install depthai_sdk
- Edited
I removed the versions since I wanted it to function and not be confined to a certain version, but maybe Ill try adding it back?
Yea
- Edited
I would suggest you to copy the working version to your Desktop and leaving it alone. Maybe also run python -m pip freeze
which will give you a list of all installed packages. And save this somewhere too.
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-trackerpython main.py
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 3, in <module>
from depthai_sdk import OakCamera, TrackerPacket, Visualizer, TextPosition
ImportError: cannot import name 'TrackerPacket' from 'depthai_sdk' (C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\init.py)
Sentry is attempting to send 1 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit
ahh, make sure to install the depthai_sdk version you had previously
I think this version:
python -m pip install depthai-sdk==1.9.1.1
After installing that version I got back
(venv) C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-trackerpython main.py
Closing OAK camera
Traceback (most recent call last):
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\depthai-viewer\scripts\depthai-experiments\gen2-people-tracker\main.py", line 25, in <module>
oak.start(blocking=True)
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 268, in start
self.build() # Build the pipeline
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 349, in build
self._init_device()
File "C:\Users\sale4088\AppData\Local\Programs\Depthai2\venv\lib\site-packages\depthai_sdk\oak_camera.py", line 211, in _init_device
self._oak.device = dai.Device(
RuntimeError: Device already closed or disconnected: io error
on this error just try again, or power-cycle and try again
I tried it a couple times and it works once, and then I shut it off and try it again, but it doesn't seem to want to work consistently. Because when I re try it, it wont start and it will give me an error message
Well, do you need to reset it many times? I think if it suits you, you should just let it run