underworld3 icon indicating copy to clipboard operation
underworld3 copied to clipboard

Install Error

Open gp37 opened this issue 1 year ago • 7 comments

I would like to try underworld3 but I get an error when downloading using the Underworld3_latest.sif

When I try and run an example script I get the following error: module 'underworld' has no attribute 'meshing'

This error occurs the first time underworld is used which builds the mesh with this line:
meshbox = uw.meshing.UnstructuredSimplexBox( minCoords=(0.0, 0.0), maxCoords=(1.0, 1.0), cellSize=1.0 / 32.0, regular=True, qdegree=3)

When I run underworld3_latest.sif pip list I see that the version is listed as underworld 2.15.0b0. Should the module be listed as underworld3 and not an underworld2 version?

gp37 avatar Mar 19 '24 22:03 gp37

I think uw2 and uw3 are bundled together. Make sure you're importing underworld3 as uw not underworld

bknight1 avatar Mar 20 '24 00:03 bknight1

When I run: import underworld3 as uw

I get the following error: No module named 'underworld3'

I can run: import underworld as uw but I get my original posted error.

gp37 avatar Mar 20 '24 03:03 gp37

Are you able to install modules within the container? You could try pip3 install git+https://github.com/underworldcode/underworld3.git

bknight1 avatar Mar 26 '24 07:03 bknight1

Ok I tried that and it seemed to have worked however I now the the following error: partially initialized module 'underworld3' has no attribute 'systems' (most likely due to a circular import)

gp37 avatar Mar 26 '24 16:03 gp37

Could be as simple as needing to run clean.sh to remove artefacts from the aborted build.

lmoresi avatar Apr 03 '24 09:04 lmoresi

Is this still a live issue ?

lmoresi avatar May 26 '24 11:05 lmoresi

is this still a live issue @gp37 ?

lmoresi avatar Aug 29 '24 12:08 lmoresi