stl_tools icon indicating copy to clipboard operation
stl_tools copied to clipboard

ModuleNotFoundError: No module named 'numpy2stl'

Open PatrickM84 opened this issue 8 years ago • 2 comments

Hello,

I followed your instructions but when i try to use image2stl in command line i get the following error: Im using Linux Mint 18.2

image2stl leen.png Traceback (most recent call last): File "/usr/local/bin/image2stl", line 11, in load_entry_point('stl-tools==0.3.0', 'console_scripts', 'image2stl')() File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 570, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2755, in load_entry_point return ep.load() File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2409, in load return self.resolve() File "/usr/local/lib/python3.6/dist-packages/pkg_resources/init.py", line 2415, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/local/lib/python3.6/dist-packages/stl_tools/image2stl.py", line 4, in from numpy2stl import numpy2stl ModuleNotFoundError: No module named 'numpy2stl'

Any ideas how i can repair this? - Google does not know this error

PatrickM84 avatar Oct 23 '17 23:10 PatrickM84

Hi, I run into the same issue while trying stl_tools on a current python windows environment. Did you find a solution/workaround? Jens EDIT: works on Windows with Python 2.7...

jlobie avatar Dec 09 '17 05:12 jlobie

Looks like the import should be from stl_tools.numpy2stl import numpy2stl editing it does the trick. Made a PR #14 but there are PRs in queue from several years ago so not sure how likely it is to be merged.

catskul avatar May 28 '20 22:05 catskul