Thanks for your interest in Modulus.
You’re likely running version 22.07 of the examples if I had to guess. We had a lot of changes to the imports in 22.07 so things will not line up with 22.03.1 image.
Is there any reason you’re running 22.03.1 specifically? If so I can provide you the import fixes.
However, I still encounter problem running the example.
root@623966b3241a:/examples/ldc# python ldc_2d.py
Error executing job with overrides:
Traceback (most recent call last):
File “ldc_2d.py”, line 82, in run
openfoam_var = csv_to_dict(
File “/modulus/modulus/utils/io/csv_rw.py”, line 33, in csv_to_dict
values = np.loadtxt(filename, skiprows=1, delimiter=delimiter, unpack=False)
File “/opt/conda/lib/python3.8/site-packages/numpy/lib/npyio.py”, line 1163, in loadtxt
chunk.append(packer(convert_row(words)))
File “/opt/conda/lib/python3.8/site-packages/numpy/lib/npyio.py”, line 1142, in convert_row
return [*map(_conv, vals)]
File “/opt/conda/lib/python3.8/site-packages/numpy/lib/npyio.py”, line 725, in _floatconv
return float(x) # The fastest path.
ValueError: could not convert string to float: ‘oid sha256:4c68adf2b0a04c53f0abd4d3920f3fec618669399638dd5ece84785f474d1fa6’
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
root@623966b3241a:/examples/ldc#
I can run the ode_spring_mass example correctly though.
Looks like you don’t have Git LFS installed. We use Git LFS in our examples repo to store the data files, without LFS it will just be a pointer file. With Git LFS installed, try re-cloning the examples repo. That CSV file for LDC should now have proper data in it and the example should run.