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

Module Auto Installation failed? #2

Closed kintuX closed 2 years ago

kintuX commented 3 years ago

Installation of v1.1.0 on W10 with Blender 2.91 didn't succeed. First I got this:

...\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Tesselate_texture_plane\auto_modules.py:27: RuntimeWarning: Use 'sys.executable' instead of 'binary_path_python'! PYTHON_PATH = Path(bpy.app.binary_path_python)

Then, when I try to enable addon I get following Error:

`Traceback (most recent call last): File "C:\programi\b291\2.91\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "C:\Users\309\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Tesselate_texture_plane__init__.py", line 55, in import triangle # triangle doc >> https://rufat.be/triangle/API.html ModuleNotFoundError: No module named 'triangle'

Traceback (most recent call last): File "C:\programi\b291\2.91\scripts\modules\addon_utils.py", line 351, in enable mod = import(module_name) File "C:\Users\309\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\Tesselate_texture_plane__init__.py", line 55, in import triangle # triangle doc >> https://rufat.be/triangle/API.html ModuleNotFoundError: No module named 'triangle' `

Pullusb commented 3 years ago

Hi Kintux, Aaaah, yeah sorry, it seems modules auto install failed... I feared this would happen to people. The problem is... I have also W10 and Blender 2.91, and I don't have the error (difficult to solve problem when you don't have it ^^' )

Sure thing here, the warning about sys.executable is not the cause (this is just a warning caused by an API change in 2.91).

Can you try activating the addon after launching blender as admin ?

If it's still not working, well I can't do much to make a better auto-installation of module so I invite you to read the readme section about manual installation of needed module

Hope it will be clear enough for you (this is a bit of a pain).

Also, can you tell me if admin mode did the trick for you, if it's the case I'll add it in the readme.

Pullusb commented 3 years ago

@kintuX did you worked out the modules installation in the end ?

kintuX commented 3 years ago

Yes, I'm always launching as Admin. No, sadly I haven't got around of solving the problem yet. If all fails, I'll do a clean install... anyway, it's a single case so don't worry ;) I'll keep you posted.

Pullusb commented 2 years ago

Hi @kintuX, The addon is now compatible with latest versions of blender (triangle lib was very recently updated by it's owner). I also fixed a little bug in the auto-module install that might have been involved in your error above. if you had already openCV module, it skipped the install of triangle if missing, now fixed.

Closing the issue Feel free to reopen the issue if you still have the problem.