luxonis / depthai

DepthAI Python API utilities, examples, and tutorials.
https://docs.luxonis.com
MIT License
919 stars 230 forks source link

[BUG] X_LINK_INSUFFICIENT_PERMISSIONS when running calibration reader #1047

Open DrBwts opened 1 year ago

DrBwts commented 1 year ago

Check if issue already exists

Have Google & looked through trouble shooting but not found an answer

Describe the bug I'm trying to read the calibration data from an OAK-D-lite using the calibration reader script but get,

X_LINK_INSUFFICIENT_PERMISSIONS

Minimal Reproducible Example I run the script as Admin on a Win10 x64 machine from an Anaconda command line.

Expected behavior I expected to get the calibration information for my device

Attach system log { "architecture": "64bit WindowsPE", "machine": "AMD64", "platform": "Windows-10-10.0.19045-SP0", "processor": "Intel64 Family 6 Model 94 Stepping 3, GenuineIntel", "python_build": "main Mar 21 2023 18:39:17", "python_compiler": "MSC v.1916 64 bit (AMD64)", "python_implementation": "CPython", "python_version": "3.10.10", "release": "10", "system": "Windows", "version": "10.0.19045", "win32_ver": "10 10.0.19045 SP0 Multiprocessor Free", "packages": [ "alabaster==0.7.13", "arrow==1.2.3", "astroid==2.15.0", "asttokens==2.2.1", "atomicwrites==1.4.1", "attrs==22.2.0", "autopep8==1.6.0", "Babel==2.12.1", "backcall==0.2.0", "bcrypt==4.0.1", "beautifulsoup4==4.12.0", "binaryornot==0.4.4", "black==23.1.0", "bleach==6.0.0", "blinker==1.6.2", "blobconverter==1.4.1", "boto3==1.26.135", "botocore==1.29.135", "certifi @ file:///C:/b/abs_85o_6fm0se/croot/certifi_1671487778835/work/certifi", "cffi==1.15.1", "chardet==5.1.0", "charset-normalizer==2.0.12", "click==8.1.3", "cloudpickle==2.2.1", "colorama==0.4.6", "comm==0.1.3", "ConfigArgParse==1.5.3", "contourpy==1.0.7", "cookiecutter==2.1.1", "cryptography==40.0.0", "cycler==0.11.0", "dash==2.9.3", "dash-core-components==2.0.0", "dash-html-components==2.0.0", "dash-table==5.0.0", "debugpy==1.6.6", "decorator==5.1.1", "defusedxml==0.7.1", "depthai==2.21.2.0", "depthai-sdk==1.9.4", "diff-match-patch==20200713", "dill==0.3.6", "distinctipy==1.2.2", "docstring-to-markdown==0.12", "docutils==0.19", "entrypoints==0.4", "executing==1.2.0", "fastjsonschema==2.16.3", "ffmpy3==0.2.4", "flake8==6.0.0", "Flask==2.3.2", "fonttools==4.39.2", "idna==3.4", "imagesize==1.4.1", "importlib-metadata==6.1.0", "inflection==0.5.1", "intervaltree==3.1.0", "ipykernel==6.22.0", "ipython==8.11.0", "ipython-genutils==0.2.0", "ipywidgets==8.0.6", "isort==5.12.0", "itsdangerous==2.1.2", "jaraco.classes==3.2.3", "jedi==0.18.2", "jellyfish==0.9.0", "Jinja2==3.1.2", "jinja2-time==0.2.0", "jmespath==1.0.1", "jsonschema==4.17.3", "jupyter_client==7.4.9", "jupyter_core==5.3.0", "jupyterlab-pygments==0.2.2", "jupyterlab-widgets==3.0.7", "keyring==23.13.1", "kiwisolver==1.4.4", "lazy-object-proxy==1.9.0", "lz4==4.3.2", "MarkupSafe==2.1.2", "marshmallow==3.17.0", "matplotlib==3.7.1", "matplotlib-inline==0.1.6", "mcap==1.0.2", "mcap-ros1-support==0.0.8", "mccabe==0.7.0", "mistune==2.0.5", "more-itertools==9.1.0", "mypy-extensions==1.0.0", "nbclient==0.7.2", "nbconvert==7.2.10", "nbformat==5.7.0", "nest-asyncio==1.5.6", "numpy==1.24.3", "numpydoc==1.5.0", "open3d==0.17.0", "opencv-contrib-python==4.5.5.62", "packaging==23.0", "pandocfilters==1.5.0", "paramiko==3.1.0", "parso==0.8.3", "pathspec==0.11.1", "pexpect==4.8.0", "pickleshare==0.7.5", "Pillow==9.2.0", "pip==23.1.2", "platformdirs==3.1.1", "plotly==5.14.1", "pluggy==1.0.0", "prompt-toolkit==3.0.38", "psutil==5.9.4", "ptyprocess==0.7.0", "pure-eval==0.2.2", "pycodestyle==2.10.0", "pycparser==2.21", "pydocstyle==6.2.3", "pyflakes==3.0.1", "Pygments==2.14.0", "pylint==2.17.1", "pylint-venv==3.0.1", "pyls-spyder==0.4.0", "PyNaCl==1.5.0", "pyparsing==3.0.9", "PyQt5==5.15.5", "PyQt5-Qt5==5.15.2", "PyQt5-sip==12.11.1", "PyQtWebEngine==5.15.6", "PyQtWebEngine-Qt5==5.15.2", "pyrsistent==0.19.3", "pyserial==3.5", "python-dateutil==2.8.2", "python-lsp-black==1.2.1", "python-lsp-jsonrpc==1.0.0", "python-lsp-server==1.7.1", "python-slugify==8.0.1", "pytoolconfig==1.2.5", "pytube==15.0.0", "PyTurboJPEG==1.6.4", "pyusb==1.2.1", "pywin32==305", "pywin32-ctypes==0.2.0", "PyYAML==6.0", "pyzmq==25.0.2", "QDarkStyle==3.0.3", "qstylizer==0.2.2", "Qt.py==1.3.8", "QtAwesome==1.2.3", "qtconsole==5.4.1", "QtPy==2.3.0", "requests==2.26.0", "rope==1.7.0", "rosbags==0.9.11", "Rtree==1.0.1", "ruamel.yaml==0.17.26", "ruamel.yaml.clib==0.2.7", "s3transfer==0.6.1", "scipy==1.10.1", "sentry-sdk==1.5.1", "setuptools==65.6.3", "six==1.16.0", "snowballstemmer==2.2.0", "sortedcontainers==2.4.0", "soupsieve==2.4", "Sphinx==6.1.3", "sphinxcontrib-applehelp==1.0.4", "sphinxcontrib-devhelp==1.0.2", "sphinxcontrib-htmlhelp==2.0.1", "sphinxcontrib-jsmath==1.0.1", "sphinxcontrib-qthelp==1.0.3", "sphinxcontrib-serializinghtml==1.1.5", "spinnaker-python @ file:///D:/flir/spinnaker_python-3.0.0.118-cp310-cp310-win_amd64/spinnaker_python-3.0.0.118-cp310-cp310-win_amd64.whl", "spyder-kernels==2.4.2", "stack-data==0.6.2", "tenacity==8.2.2", "text-unidecode==1.3", "textdistance==4.5.0", "three-merge==0.1.1", "tinycss2==1.2.1", "toml==0.10.2", "tomli==2.0.1", "tomlkit==0.11.6", "tornado==6.2", "traitlets==5.9.0", "types-PySide2==5.15.2.1.5", "typing_extensions==4.5.0", "ujson==5.7.0", "urllib3==1.26.15", "watchdog==3.0.0", "wcwidth==0.2.6", "webencodings==0.5.1", "Werkzeug==2.3.4", "whatthepatch==1.0.4", "wheel==0.38.4", "widgetsnbextension==4.0.7", "wincertstore==0.2", "wrapt==1.15.0", "xmltodict==0.13.0", "yapf==0.32.0", "zipp==3.15.0", "zstandard==0.21.0" ], "usb": [ "No USB backend found" ], "uname": [ "Windows LAPTOP-E1RV8F1O 10 10.0.19045 AMD64 Intel64 Family 6 Model 94 Stepping 3, GenuineIntel" ] }

themarpe commented 1 year ago

@DrBwts

I think forcing USB2 speed is a temporary solution for this, while we are fixing the underlying issue affecting Windows

themarpe commented 1 year ago

You may try develop branch on depthai-python and python examples/install_requirements.py and try again. Should have that fix already in place.

Let me know if that works for you