VisionDepth3D icon indicating copy to clipboard operation
VisionDepth3D copied to clipboard

Crash on Windows

Open isthismarvin opened this issue 1 year ago • 2 comments

Hi, i get this Error when launching VisionDepth3D on Windows.

Traceback (most recent call last): File "transformers\utils\import_utils.py", line 1863, in get_module return importlib.import_module("." + module_name, self.name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "importlib_init.py", line 90, in import_module File "", line 1387, in gcd_import File "", line 1360, in find_and_load File "", line 1331, in find_and_load_unlocked File "", line 935, in load_unlocked File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "transformers\models\auto\processing_auto.py", line 28, in from ...image_processing_utils import ImageProcessingMixin File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "transformers\image_processing_utils.py", line 22, in from .image_transforms import center_crop, normalize, rescale File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "transformers\image_transforms.py", line 22, in from .image_utils import ( File "PyInstaller\loader\pyimod02_importers.py", line 450, in exec_module File "transformers\image_utils.py", line 84, in import cv2 File "C:\Program Files\VisionDepth3D_internal\cv2_init.py", line 181, in bootstrap() File "C:\Program Files\VisionDepth3D_internal\cv2_init.py", line 153, in bootstrap native_module = importlib.import_module("cv2") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "importlib_init.py", line 90, in import_module File "C:\Program Files\VisionDepth3D_internal\cv2_init.py", line 181, in bootstrap() File "C:\Program Files\VisionDepth3D_internal\cv2_init_.py", line 76, in bootstrap raise ImportError('ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.') ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "VisionDepth3D-main\VisionDepth3D.py", line 16, in File "", line 1412, in _handle_fromlist File "transformers\utils\import_utils.py", line 1852, in getattr value = getattr(module, name) ^^^^^^^^^^^^^^^^^^^^^ File "transformers\utils\import_utils.py", line 1851, in getattr module = self._get_module(self._class_to_module[name]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "transformers\utils\import_utils.py", line 1865, in _get_module raise RuntimeError( RuntimeError: Failed to import transformers.models.auto.processing_auto because of the following error (look up to see its traceback): ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.

isthismarvin avatar Mar 16 '25 22:03 isthismarvin

Having same problem, whether using exe or python to install. and yes I reinstall all requirements.

AlienYuri1025 avatar Mar 17 '25 13:03 AlienYuri1025

hello thanks for your interest in VisionDepth3D, its the way the openCV was built, missing dlls and other files. my only solution I can offer right now is a simplified VisionDepth3D-Package that has all the required files for simplicity and a guide on how to build openCV with CUDA support https://github.com/VisionDepth/VisionDepth3D/releases/tag/package-v1.0

VisionDepth avatar Mar 18 '25 06:03 VisionDepth