Pullusb / Tesselate_texture_plane

Blender addon - Triangulate your textured mesh while discarding alpha zones
GNU General Public License v3.0
127 stars 11 forks source link

Can`t enable addon, error: «No module named 'cv2.cv2'» #11

Open hitrpr opened 2 years ago

hitrpr commented 2 years ago
Traceback (most recent call last):
  File "C:\Users\Ad\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Tesselate_texture_plane-master\auto_modules.py", line 139, in pip_install_and_import
    __import__(module_name)
  File "C:\Users\Ad\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\modules\cv2\__init__.py", line 5, in <module>
    from .cv2 import *
ModuleNotFoundError: No module named 'cv2.cv2'

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

Traceback (most recent call last):
  File "D:\Progs\Graphics\3D\Blender-2.93\2.93\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\Ad\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\Tesselate_texture_plane-master\__init__.py", line 52, in <module>
    raise Exception('Cannot import modules (see console). Try restarting blender as admin') from error
Exception: Cannot import modules (see console). Try restarting blender as admin
Pullusb commented 2 years ago

Hi, Have you try installing after launching blender with admin right ?
It seems opencv module is not found or something like this...

Maybe try deleting cv2 and triangle folder inside C:\Users\Ad\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\modules\ before trying to install again...

Since I don't have this error it's hard for me to give a solution... Hope that'll help

hitrpr commented 2 years ago

Okay, only full reinstall from msi helped. And start with admin rights too. Now cv2 folder have file cv2.pyd Thanks.