I am trying to create and save an stl file with a cube and I cannot import the mesh module for some reason. When hovering over mesh
, it says: "Cannot find 'mesh' in '__init__.py'" I originally had the directory folder named stlExperiments but then someone said you cannot have stl in the name so I changed all instances of "stl" to "st" and no change, so I'm left to assume it's a completely different problem. Can anybody help? I am in the dark. The import code goes as follows:
from __future__ import absolute_import, division, print_function
import numpy as np
from stl import mesh
and the error message goes as follows:
Traceback (most recent call last): File "C:/Users/Riley/PycharmProjects/stExperiments/stCube.py", line 4, in from stl import mesh ImportError: cannot import name 'mesh'
Process finished with exit code 1