mdolab / pyspline

pySpline produces B-spline curves, surfaces, and volumes
Other
39 stars 26 forks source link

import error by using "from pyspline import Curve"! #35

Closed hntter closed 2 years ago

hntter commented 2 years ago

Hi, My python version is 3.8. I downloaded the zip document of pyspline and use "python setup.py install" to install. It showed I have successfully installed pyspline. However when I import pyspline and run, it always shows an error saying

"ImportError: cannot import name 'libspline' from partially initialized module 'pyspline' (most likely due to a circular import) (D:\Engineering Software\Python38\lib\site-packages\pyspline__init__.py)"

Is it because the version of my phthon wrong? How can I fixed this error?

Best wishes,

Zhengyu Qu

eirikurj commented 2 years ago

Hi, please have a look at the documentation, specifically the build instructions, on how to build and install pySpline.

hntter commented 2 years ago

Hi, please have a look at the documentation, specifically the build instructions, on how to build and install pySpline.

Thanks for your reply. I use python on windows and I have installed gfortran as complier. The error about 'libspline' is still unsolved. What else should I do to solve this error?

Best wishes,

Zhengyu Qu

ewu63 commented 2 years ago

We do not support Windows.