luxonis / depthai-viewer

Log images, point clouds, etc, and visualize them effortlessly. Built in Rust using egui
https://rerun.io
Apache License 2.0
26 stars 2 forks source link

depthai-viewer Exiting... in windows OS #31

Closed green512 closed 1 month ago

green512 commented 11 months ago

output: Backend started successfully. Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Python311\Lib\site-packages\depthai_viewer_backend\main.py", line 26, in sentry_sdk.init( File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\hub.py", line 121, in _init client = Client(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\client.py", line 143, in init self._init_impl() File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\client.py", line 223, in _init_impl self.integrations = setup_integrations( ^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\integrations__init.py", line 109, in setup_integrations for integration_cls in iter_default_integrations( File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\integrations__init.py", line 41, in iter_default_integrations yield getattr(import_module(module), cls) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\sentry_sdk\integrations\fastapi.py", line 22, in import fastapi # type: ignore ^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\fastapi\init.py", line 7, in from .applications import FastAPI as FastAPI File "C:\Python311\Lib\site-packages\fastapi\applications.py", line 16, in from fastapi import routing File "C:\Python311\Lib\site-packages\fastapi\routing.py", line 24, in from fastapi.dependencies.models import Dependant File "C:\Python311\Lib\site-packages\fastapi\dependencies\models.py", line 3, in from fastapi.security.base import SecurityBase File "C:\Python311\Lib\site-packages\fastapi\security\init__.py", line 1, in from .api_key import APIKeyCookie as APIKeyCookie File "C:\Python311\Lib\site-packages\fastapi\security\api_key.py", line 3, in from fastapi.openapi.models import APIKey, APIKeyIn File "C:\Python311\Lib\site-packages\fastapi\openapi\models.py", line 103, in class Schema(BaseModel): File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\pydantic\main.py", line 291, in new cls.signature = ClassAttribute('signature', generate_model_signature(cls.init__, fields, config)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\site-packages\depthai_viewer\venv-0.1.4\Lib\site-packages\pydantic\utils.py", line 256, in generate_model_signature merged_params[param_name] = Parameter( ^^^^^^^^^^ File "C:\Python311\Lib\inspect.py", line 2715, in init raise ValueError('{!r} is not a valid parameter name'.format(name)) ValueError: 'not' is not a valid parameter name Exiting...

zrezke commented 11 months ago

Hey @green512 - Huh, that's very interesting. Looks like a fastapi crash in the sentry_sdk which we use for error reporting, ironic. I think there is a large chance it will work if you install depthai-viewer using a lower python version like 3.10.

zrezke commented 11 months ago

Relevant fastapi issue https://github.com/tiangolo/fastapi/issues/5048

zrezke commented 1 month ago

Closing due to inactivity.