underworldcode / underworld2

underworld2: A parallel, particle-in-cell, finite element code for Geodynamics.
http://www.underworldcode.org/
Other
168 stars 58 forks source link

cannot import name 'StGermain' from partially initialized module 'underworld.libUnderworld.libUnderworldPy' #651

Closed blingwang1996 closed 1 year ago

blingwang1996 commented 1 year ago

Dear Underworld Team

I encountered some problems in "import underworld"

The ImportError: cannot import name 'StGermain' from partially initialized module 'underworld.libUnderworld.libUnderworldPy' (most likely due to a circular import) (/Volumes/DATA/Underworld2/underworld2/underworld/libUnderworld/libUnderworldPy/init.py) The underworld2 _version is ""2.14.0b""

Please help

Kind Regards

julesghub commented 1 year ago

Hi @blingwang1996 ,

The current underworld version is 2.14.1b. I can confirm installing it with pip install underworld works for me.

$ pip install underworld
...
$ python -c 'import underworld as uw; print(uw.__version__)'
2.14.1b

How did you install underworld: using docker, pip or compilation?

cheers, J

blingwang1996 commented 1 year ago

Thanks guys so much