-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Cannot import mesh #55
Comments
There are two common problems that can cause this error.
|
Thanks for your quick response.
Basically I am trying to do a little bit of formatting/editing of the .stl file and then fit the data into a numpy array, sparse matrix or Pandas Dataframe.
Is your module the best for this versus the pypi stl package?
Really appreciate your advise.
Matthew Weems
… On Jun 10, 2017, at 8:21 PM, Rick van Hattem ***@***.***> wrote:
There are two common problems that can cause this error.
You have a different stl module installed (this one: https://pypi.python.org/pypi/stl <https://pypi.python.org/pypi/stl>). Which is incompatible with this module. You can uninstall it through: pip uninstall -y stl
You have a file named stl.py in your current directory. Please rename it to something else and make sure you remove or rename any stl.pyc and/or stl.pyo files as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#55 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ATi_Cmzl7iyleXd1269TlrdbsfzB7nU9ks5sC0D_gaJpZM4N2QSd>.
|
I can't say I've ever used the package so I'm not sure to be honest. But as
far as I can see that package is undocumented and untested so I would guess
this package would be the better choice.
|
Cannot install https://pypi.org/project/stl/#files as it gives an error "SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-HKGsjV/stl/ I need it for the numpy-stl which gives an error No module error. I also checked I don't have any other stl packages installed. I am using Python3 should I be using pip3 install ? best wishes |
If you're using python 3,using pip3 is usually a good idea so you have a better chance of getting the right pip version. That won't help you here however. This is the numpy-stl package, not stl. You're installing the wrong package. |
Well, I have installed numpy-stl using pip yet I am getting the no module error |
You can try uninstalling and reinstalling all stl packages to try and fix it.
(or pip3, it depends on your environment) |
Thanks, but it hasn't helped. I still get the No module found error.
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-avd0nmgr/numpy-stl/ |
I'm not sure what is wrong but this library doesn't even use You can try it from a new project directory to see if that helps. |
Thanks I will have a go at it. Cheers! |
I have the same issue as Amartya32. |
Restarting the Kernel helped me resolve this issue. I think once you install stl instead of numpy-stl, the code somehow keeps referring to that even after uninstall. You would need to restart the kernel. Hope this helps. |
how can I solve this error "module 'stl' has no attribute 'BaseStl'"? |
@AMMARBRO111 It is usually caused by having a conflicting library installed. You can try this: |
I'm a novice and this is probably user error, but when I run my program I receive error: cannot import mesh.
Any idea what this may be about? Please be specific in your response, as I am a beginner in Python.
Thanks so much for your help.
The text was updated successfully, but these errors were encountered: