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

Issue with 3.10 wheels #14

Open
friggog opened this issue May 19, 2022 · 12 comments
Open

Issue with 3.10 wheels #14

friggog opened this issue May 19, 2022 · 12 comments

Comments

@friggog
Copy link
Contributor

friggog commented May 19, 2022

Hi @jannessm - unfortunately seems like there is some issue with python 3.10 wheels. No windows wheels exist at https://pypi.org/project/quad-mesh-simplify/1.1.5/#files and installing on linux ends up with error ModuleNotFoundError: No module named 'quad_mesh_simplify'. Looking in the wheel it seems like the so file is named incorrectly?

image

@jannessm
Copy link
Owner

please check again! Sorry for the long time it took me to help you out!

@TeresaRoberts
Copy link

Hi, I have a similar issue on windows 10, python 3.9. This got installed as a requirement for another package, and pip seems to think its there. When I go to the site-packages folder I can see the folder quad_mesh_simplify-1.1.5.dist-info but no quad_mesh_simplify folder, which I'd expect? And when I try to run code that imports it I get the message that it can't be found. I've tried re-installing it, and a different environment, but with the same result.

@alexge233
Copy link

Same issue here,
Running Python 3.9.11 and pip 22.2.
I install pip install quad_mesh_simplify but when I try to import it, I get no module named 'quad_mesh_simplify'.

@alexge233
Copy link

As a quick workaround for anyone who comes across this problem (I'm using VoxelFuse which depends on quad_mesh_simplify you can download the repo, build it and then copy the build folder into your virtual environment. I tried installing by pointing pip to it, but it still failed. I suspect it's an export that's broken.

@StevenLiuWen
Copy link

StevenLiuWen commented Aug 3, 2022

I meet the same issue, no module named 'quad_mesh_simplify, Centos 7.2 with Anaconda Python 3.9.

I have tried the two ways to install this module, pip install quad_mesh_simplify and git clone then installs at local. Both of them encounter the same issue.

@alexander-hagg
Copy link

As a quick workaround for anyone who comes across this problem (I'm using VoxelFuse which depends on quad_mesh_simplify you can download the repo, build it and then copy the build folder into your virtual environment. I tried installing by pointing pip to it, but it still failed. I suspect it's an export that's broken.

This works, but be sure to copy both the entire folder quad_mesh_simplify (named as such) into the virtual environment, as well as the built simplify.cpython-38-x86_64-linux-gnu.so file.

@YiLin32Wang
Copy link

As a quick workaround for anyone who comes across this problem (I'm using VoxelFuse which depends on quad_mesh_simplify you can download the repo, build it and then copy the build folder into your virtual environment. I tried installing by pointing pip to it, but it still failed. I suspect it's an export that's broken.

This works, but be sure to copy both the entire folder quad_mesh_simplify (named as such) into the virtual environment, as well as the built simplify.cpython-38-x86_64-linux-gnu.so file.

Hi, thanks for the solution. I'm currently having the same problem here. As I tried this solution, things still can't work. I have tried copying the "quad_mesh_simplify" folder & the built simplify.cpython-38-x86_64-linux-gnu.so to the root folder of my virtual environment as well as the subfolder bin, but neither works as said. Could you help me double check if I have ever mistaken some steps in between? or have I mistaken the required destination folder ?

@alexander-hagg
Copy link

You might need to use a relative import. Try importing it while being in the actual module directory and there it probably should work. So relative imports it is (or add the folder to the python path)

@alexander-hagg
Copy link

Anyway I suspect there is something basic missing from the pip install but I can't see it

@alexander-hagg
Copy link

alexander-hagg commented Nov 28, 2022

You might need to use a relative import. Try importing it while being in the actual module directory and there it probably should work. So relative imports it is (or add the folder to the python path)

I did the following before using simplify (quadric was cloned and compiled in util/quadric):

import sys
sys.path.insert(0,'util/quadric')

@andy-5
Copy link

andy-5 commented May 5, 2023

For me it works out of the box if I change the import to

from simplify import simplify_mesh

This seems to be caused by a wrong package name in setup.py, which I think would be fixed by #17 .

@hernot
Copy link

hernot commented Aug 7, 2023

Seems as if README examples are outdated concerning how to import.

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

9 participants