meom-group / eophis

Couple Python and Machine Learning models with Geophysical simulation codes through OASIS
https://eophis.readthedocs.io/en/latest/
MIT License
8 stars 0 forks source link

pip install eophis #4

Closed Etienne-Meunier closed 6 months ago

Etienne-Meunier commented 6 months ago

When I install eophis with pip using : pip install .

And then run make in eophis/tests/write_and_couple I get

rm namcouple* nout* debug* *.log *.out *.err
rm: cannot remove 'namcouple*': No such file or directory
rm: cannot remove 'nout*': No such file or directory
rm: cannot remove 'debug*': No such file or directory
rm: cannot remove '*.log': No such file or directory
make: [Makefile:19: clean] Error 1 (ignored)
python3 ./main.py --exec preprod

*****************************************************
Uncaught exception was detected on rank 0. 
Traceback (most recent call last):
  File "/gpfsdswork/projects/rech/gzi/ufk69pe/eophis/tests/write_and_couple/./main.py", line 2, in <module>
    import eophis
  File "/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/site-packages/eophis/__init__.py", line 56, in <module>
    _init_eophis()
  File "/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/site-packages/eophis/__init__.py", line 45, in _init_eophis
    _init_coupling()
  File "/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/site-packages/eophis/coupling/__init__.py", line 46, in _init_coupling
    shutil.copy(cpl_nml_base, cpl_nml_ref)
  File "/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/shutil.py", line 417, in copy
    copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/linkhome/rech/genips01/ufk69pe/.conda/envs/eophis/lib/python3.10/site-packages/namcouple_eophis'
Abort(1) on node 0 (rank 0 in comm 0): application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
make: *** [Makefile:10: preprod] Error 1

However : pip install -e . works fine