pmneila/PyMCubes

Failed to find exporter after installation

andrewdalecramer opened this issue · 3 comments

Hey, got it to compile and install but still doesn't run

Traceback (most recent call last):
File "generate.py", line 6, in
import mcubes
File "/home/user/local/anaconda3/lib/python3.4/site-packages/PyMCubes-0.0.4-py3.4-linux-x86_64.egg/mcubes/init.py", line 3, in
from exporter import export_mesh
ImportError: No module named 'exporter'

Sorry, the library was developed and tested for Python 2, not Python 3. I'll fix that soon. In the meantime, you can just edit the file /home/user/local/anaconda3/lib/python3.4/site-packages/PyMCubes-0.0.4-py3.4-linux-x86_64.egg/mcubes/init.py and change the last line to

from .exporter import export_mesh

(note the extra dot before exporter). That should make it work.

Ahhh, makes sense. Thanks for the support you've provided, I've ended up putting it into matlab and using isosurface now so don't stress too much.

Hi,

I pushed some changes to make the library compatible with Python 2 and 3 and uploaded the new version to PyPI. All your problems should be fixed now.