Description
Hi @anton-jeran,
For my research I am trying to use the MESH2IR software. However, I am running into some troubles.
General information
I am running python3.9 (python3.6 did not work) on Windows 11. I have a laptop with an AMD Ryzen 7 5800H CPU and an NVIDIA RTX 3050 Laptop GPU.
I can install all dependencies using pip without errors.
mesh_simplification.py error (maybe solved)
At step python mesh_simplification.py
I got the following error:
$ python mesh_simplification.py
input mesh has 92439 vertex and 152182 faces
Traceback (most recent call last):
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\MESH2IR\evaluate\mesh_simplification.py", line 32, in <module>
ms.apply_filter('simplification_quadric_edge_collapse_decimation', targetfacenum=TARGET_Faces, preservenormal=True)
pymeshlab.pmeshlab.PyMeshLabException: Failed to apply filter: simplification_quadric_edge_collapse_decimation
Filter does not exists. Take a look at MeshSet.print_filter_list function.
Which I solved by changing
ms.apply_filter('simplification_quadric_edge_collapse_decimation', targetfacenum=TARGET_Faces, preservenormal=True)
in the mesh_simplification.py
file to
ms.apply_filter('meshing_decimation_quadric_edge_collapse', targetfacenum=TARGET_Faces, preservenormal=True)
Which worked. They seem to have changed the name of the filters. Could you confirm that this is the correct filter to use?
evaluate.py error (not solved)
When running the evaluate.py script, I am getting the following error:
$ python evaluate.py
Traceback (most recent call last):
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\libsndfile.py", line 44, in <module>
_lib = ct.CDLL(dllPath)
File "C:\Users\20214799\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 364, in __init__
if '/' in name or '\\' in name:
TypeError: argument of type 'NoneType' is not iterable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\libsndfile.py", line 50, in <module>
_lib = ct.CDLL(os.path.join(dllPath, dllName))
File "C:\Users\20214799\AppData\Local\Programs\Python\Python39\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\libsndfile-1' (or one of its dependencies). Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\MESH2IR\evaluate\evaluate.py", line 24, in <module>
from wavefile import WaveWriter, Format
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\__init__.py", line 1, in <module>
from .wavefile import *
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\wavefile.py", line 31, in <module>
from .libsndfile import (
File "C:\Users\20214799\Documents\python_venv_2\20250219_mesh2ir\lib\site-packages\wavefile\libsndfile.py", line 52, in <module>
raise Exception("could not import libsndfile dll, make sure the dll '%s' is in the path"%(dllName))
Exception: could not import libsndfile dll, make sure the dll 'libsndfile-1' is in the path
It seems to have to do with the wavefile package, but I am not sure how to solve this. Do you have a suggestion?
Best,
lucpdi