Closed Quan711 closed 2 years ago
Hi Quan,
I'm sorry to hear you're having trouble getting started with MicroStructPy. I haven't verified it for myself on Python 3.10. Would it be possible to install running an earlier version, such as 3.7 or 3.8? Let me know if that works for you.
Best, Kip
Hi Kip,
Thanks for your kind reply. I tried with Jupyter Notebook and it works for me now. I will try to install running an earlier version later this week and let you know if it works.
Best, Quan
Hi Quan,
Glad to hear it's working. I'll close the issue, but if there's any related bugs please feel free to re-open.
Best, Kip
Howdy,
I have pip installed microstructpy with no error. But when running the python -c 'import microstructpy' command, I got an TypeError like this:
C:\Users\quanz>python -c "import microstructpy" Traceback (most recent call last): File "", line 1, in
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\microstructpy__init.py", line 1, in
import microstructpy.cli
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\microstructpy\cli.py", line 31, in
from microstructpy.meshing import PolyMesh
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\microstructpy\meshing__init.py", line 2, in
from microstructpy.meshing.trimesh import RasterMesh
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\microstructpy\meshing\trimesh.py", line 19, in
import pygmsh as pg
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pygmsh\ init__.py", line 1, in
from . import geo, occ
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pygmsh\geo\ init.py", line 1, in
from .geometry import Geometry
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pygmsh\geo\geometry.py", line 5, in
import gmsh
File "C:\Users\quanz\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\gmsh.py", line 53, in
lib = CDLL(libpath)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.752.0_x64 qbz5n2kfra8p0\lib\ctypes__init.py", line 364, in init__
if '/' in name or '\' in name:
TypeError: argument of type 'NoneType' is not iterable
Any help would be highly appreciated.
Regards, Quan