Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'pymeshlab' has no attribute 'PercentageValue' #2

Closed
zhizdev opened this issue Feb 8, 2024 · 6 comments
Closed

Comments

@zhizdev
Copy link

zhizdev commented Feb 8, 2024

Thanks for the code @ashawkey ! This is awesome!

I am running convert.py (and thanks for the updated kiui), and now I am running into an issue with this:

Traceback (most recent call last):
  File "/home/~/code/lgm/convert.py", line 460, in <module>
    converter.fit_mesh()
  File "/home/~/code/lgm/convert.py", line 294, in fit_mesh
    vertices, triangles = clean_mesh(vertices, triangles, remesh=True, remesh_size=0.01)
  File "/home/~/miniconda3/envs/ldm2/lib/python3.10/site-packages/kiui/mesh_utils.py", line 127, in clean_mesh
    threshold=pml.PercentageValue(v_pct)
AttributeError: module 'pymeshlab' has no attribute 'PercentageValue'

My current pymeshlab version is: pymeshlab-2022.2.post3 and I installed it with pip install pymeshlab

I am on python 3.10

Would love any insights or feedback on this issue!

@ashawkey
Copy link
Collaborator

ashawkey commented Feb 8, 2024

@zhizdev Hi, the latest pymeshlab version should be 2023.12.post1, which should be able to work.
You can try to install with -U for updating. Otherwise, we also support pip install pymeshlab==0.2.

@zhizdev
Copy link
Author

zhizdev commented Feb 8, 2024

Thanks @ashawkey !

I wasn't able to install the latest version of pymeshlab for some reason despite trying for a long time.

I solved this by installing kiui locally and modifying mesh_utils.py by adding a monkey fix (in case anyone else experiences the same issue).

if PML_VER == '2022.2.post3':
    pml.PercentageValue = pml.Percentage
    pml.PureValue = pml.AbsoluteValue

@ashawkey
Copy link
Collaborator

ashawkey commented Feb 9, 2024

@zhizdev Thanks! Would you like to open a PR to add this to kiuikit?

@zhizdev
Copy link
Author

zhizdev commented Feb 9, 2024

Thanks, opened a PR.

@zhizdev zhizdev closed this as completed Feb 10, 2024
@Justinfungi
Copy link

Thanks @ashawkey !

I wasn't able to install the latest version of pymeshlab for some reason despite trying for a long time.

I solved this by installing kiui locally and modifying mesh_utils.py by adding a monkey fix (in case anyone else experiences the same issue).

if PML_VER == '2022.2.post3':
    pml.PercentageValue = pml.Percentage
    pml.PureValue = pml.AbsoluteValue

Yup this monkey fix does help. It seems the pymeshlab 202312 post failed the test and cannot be installed.

@brabbitdousha
Copy link

Thanks @ashawkey !
I wasn't able to install the latest version of pymeshlab for some reason despite trying for a long time.
I solved this by installing kiui locally and modifying mesh_utils.py by adding a monkey fix (in case anyone else experiences the same issue).

if PML_VER == '2022.2.post3':
    pml.PercentageValue = pml.Percentage
    pml.PureValue = pml.AbsoluteValue

Yup this monkey fix does help. It seems the pymeshlab 202312 post failed the test and cannot be installed.

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants