underworldcode / underworld3

https://underworldcode.github.io/underworld3/
Other
21 stars 10 forks source link

Install Error #170

Open gp37 opened 8 months ago

gp37 commented 8 months ago

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?

bknight1 commented 8 months ago

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

gp37 commented 8 months ago

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.

bknight1 commented 8 months ago

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

gp37 commented 8 months ago

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)

lmoresi commented 7 months ago

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

lmoresi commented 6 months ago

Is this still a live issue ?

lmoresi commented 2 months ago

is this still a live issue @gp37 ?