Tesselate_texture_plane icon indicating copy to clipboard operation
Tesselate_texture_plane copied to clipboard

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

Open hitrpr opened this issue 3 years ago • 2 comments

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


hitrpr avatar Feb 08 '22 04:02 hitrpr

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

Pullusb avatar Feb 08 '22 21:02 Pullusb

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

hitrpr avatar Feb 08 '22 23:02 hitrpr