hermes error when used by telapy for parsing SERAFIN file

Hi,

error occurs as using hermes for analyzing serafin file:

_hermes.error is related to b’SERAFIN ’

Traceback (most recent call last):

File “/home/[name removed]/opentelemac-mascaret/main/scripts/python3/driven_coupling.py”, line 81, in

the_coupling(driven_run)

File “/home/[name removed]/opentelemac-mascaret/main/scripts/python3/telapy/coupling/long_cpl_driver.py”, line 456, in call

self.preparation_model()

File “/home/[name removed]/opentelemac-mascaret/main/scripts/python3/telapy/coupling/long_cpl_driver.py”, line 287, in preparation_model

res = TelemacFile('T2DPRE')

File “/home/[name removed]/opentelemac-mascaret/main/scripts/python3/data_manip/extraction/telemac_file.py”, line 56, in init

HermesFile.__init__(self, file_name,

File “/home/[name removed]/opentelemac-mascaret/main/scripts/python3/telapy/api/hermes.py”, line 151, in init

HermesFile._hermes.open_mesh(self._fformat,

_hermes.error: try_pyarr_from_string failed

On CentOS 7 system; compilation env is gcc/gfortran-9.3.1; mpi env is OpenMPI-4.1.4; python env is Python-3.9.13.

The configuration file is attached.

systel-main_2022-07-05.cfg (1.01 KB)

Hi,

Has this question already been solved ?

This error also occured on my computer :S . My system is Ubuntu 20.04, intel fortran compiler and mpich2 is used.

zpchen

Not yet.

I removed the compiled _hermes.so api, and use the Python class SerafinFile instead.

hi [name removed],

did you apply changes to all python scripts?

if so, can you share, please? I’m dealing the same problem.

[name removed]

Up to v8p4, I use Python class SerafinFile, rather than hermes.

The changes that I applied are issues of numpy dtype “np.int” in “data_manip.formats.serafin_file” and “data_manip.extraction.telemac_file”, which raise errors because it’s been not supported by Numpy.

1 Like

It should be fixed in V8P5

https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/commit/7a48adf157fbdd2217f01bf33321dd78a0445856

1 Like