Closed rvalluru285 closed 1 year ago
There are a few possible causes for this, but they are all the same issue really. You are importing the wrong module :)
You can easily find out by doing:
import stl
print(stl)
That should show you where stl
is loaded from. The two most likely options are:
stl.py
in your local directorystl
package that is conflicting with this one.If it's issue number two than it's likely because you have the stl
package installed. It's quite a common issue: https://github.com/wolph/numpy-stl/issues/47
In that case a pip uninstall stl
should do the trick
Thank you of the suggestion. I will follow your suggestions to rectify it. In case, if I have a further query, I will let you know. Thank you for your response. Ravi
Hi Wolph -
Thanks for the great package to work with STL files. I am wondering if you could help with the issue I am having. I am trying to convert PLY file and save it as a STL ascii and I am using mode=stl.Mode.ASCII argument while saving the file. However, it throws an error saying <module 'stl' has no attribute 'Mode'>. Below is the code. Thanks in advance for the help.
for file in plyList: sName = file.split('') pName = sName[0] + '' + sName[1]
AttributeError: module 'stl' has no attribute 'Mode'