Pullusb / Tesselate_texture_plane

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

not working in blender 4.x version #17

Open AmitMourya1322 opened 8 months ago

AmitMourya1322 commented 8 months ago

I am running blender as Admin This Error os Showing `Traceback (most recent call last): File "C:\Users\91956\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Tesselate_texture_plane-master\auto_modules.py", line 90, in pip_install_and_import import(module_name) ModuleNotFoundError: No module named 'cv2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\91956\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Tesselate_texture_plane-master\auto_modules.py", line 105, in pip_install_and_import external_scripts = bpy.context.preferences.filepaths.script_directory AttributeError: 'PreferencesFilePaths' object has no attribute 'script_directory'

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

Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\modules\addon_utils.py", line 364, in enable mod = importlib.import_module(module_name) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\python\lib\importlib__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\91956\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\Tesselate_texture_plane-master__init__.py", line 67, in raise Exception(error_message) from error Exception: --- Cannot import modules (see console). Try following solutions:

  1. Try enabling addon after restarting blender as admin
  2. If error is still there, try deleteting currently installed modules:
    • go to modules folder. Should be: C:\Users\91956\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\modules
    • delete folders "triangle", "cv2", "triangle...dist-infos", "opencv...dist-infos"
    • Try enabling the addon again to auto-install modules associated with this version of blender (preferably started as admin)

`

Pullusb commented 8 months ago

Hi there, Thank you for reporting. I'll fix the 4.0 compatibility soon (probably early january).