# hermes error when used by telapy for parsing SERAFIN file

**URL:** <https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912>\
**Category:** TELAPY / ADAO / OPENTURNS / and co.\
**Created:** [July 5, 2022, 7:07am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912 "2022-07-05T07:07:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![user\_12138](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e47c2d/32.png) [@user\_12138](https://opentelemac.org/forum/u/user_12138)\
**Post date:** [July 5, 2022, 7:07am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/1 "2022-07-05T07:07:36Z")

</div>

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](https://opentelemac.org/forum/uploads/short-url/jXky3ReNyq11aIvHQ0eUiNOwBPZ.cfg) (1.01 KB)

---

<div class="post-metadata">

**Author:** ![user\_16146](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/91b2a8/32.png) [@user\_16146](https://opentelemac.org/forum/u/user_16146)\
**Post date:** [February 9, 2023, 6:55am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/2 "2023-02-09T06:55:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![user\_12138](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e47c2d/32.png) [@user\_12138](https://opentelemac.org/forum/u/user_12138)\
**Post date:** [March 15, 2023, 1:11am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/3 "2023-03-15T01:11:02Z")

</div>

Not yet.

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

---

<div class="post-metadata">

**Author:** ![user\_15804](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e9bcb4/32.png) [@user\_15804](https://opentelemac.org/forum/u/user_15804)\
**Post date:** [January 4, 2024, 8:25am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/4 "2024-01-04T08:25:25Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![user\_12138](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e47c2d/32.png) [@user\_12138](https://opentelemac.org/forum/u/user_12138)\
**Post date:** [January 10, 2024, 6:57am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/5 "2024-01-10T06:57:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![user\_12138](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e47c2d/32.png) [@user\_12138](https://opentelemac.org/forum/u/user_12138)\
**Post date:** [January 10, 2024, 7:16am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/6 "2024-01-10T07:16:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![user\_14270](https://opentelemac.org/forum/letter_avatar_proxy/v4/letter/u/e5b9ba/32.png) [@user\_14270](https://opentelemac.org/forum/u/user_14270)\
**Post date:** [January 10, 2024, 8:09am UTC](https://opentelemac.org/forum/t/hermes-error-when-used-by-telapy-for-parsing-serafin-file/6912/7 "2024-01-10T08:09:05Z")

</div>

It should be fixed in V8P5

[https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/commit/7a48adf157fbdd2217f01bf33321dd78a0445856](https://gitlab.pam-retd.fr/otm/telemac-mascaret/-/commit/7a48adf157fbdd2217f01bf33321dd78a0445856)
