So, I've downloaded the sif container salome_meca-lgpl-2024.1.0-1-20240327, and after resolving some issues, I got to somewhat get some calculations done... but then something broke, I think when I tried to install the quantities package with pip, but I don't know what and I don't know how to solve the issue.
Not sure what happened exactly, but something broke and now I cannot run even CA at all: I try to run this:
DEBUT(LANG='EN')
# mesh
mesh = LIRE_MAILLAGE(identifier='0:1',
FORMAT='MED',
UNITE=20)
###
FIN()
and I have this error:
Singularity> as_run --local normal.export
--------------------------------------------------------------------------------
Exécution de Code_Aster
<INFO> préparation de l'environnement dans /tmp/andrea-chill-interactif_25460
[...]
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "/tmp/andrea-chill-interactif_25460/fort.1", line 6, in <module>
import code_aster
File "/opt/salome_meca/V2024.1.0_scibian_univ/tools/Code_aster_stable-1670/lib/aster/code_aster/__init__.py", line 62, in <module>
import aster_fonctions
AttributeError: _ARRAY_API not found
[...]
Traceback (most recent call last):
File "/tmp/andrea-chill-interactif_25460/fort.1", line 12, in <module>
mesh = LIRE_MAILLAGE(identifier='0:1',
File "/opt/salome_meca/V2024.1.0_scibian_univ/tools/Code_aster_stable-1670/lib/aster/code_aster/Supervis/ExecuteCommand.py", line 180, in run
return cmd.run_(**kwargs)
File "/opt/salome_meca/V2024.1.0_scibian_univ/tools/Code_aster_stable-1670/lib/aster/code_aster/Supervis/ExecuteCommand.py", line 223, in run_
self.exec_(keywords)
File "/opt/salome_meca/V2024.1.0_scibian_univ/tools/Code_aster_stable-1670/lib/aster/code_aster/Commands/lire_maillage.py", line 105, in exec_
self._result.readMedFile(filename, meshname, verbose=verbose)
AttributeError: 'libaster.Mesh' object has no attribute 'readMedFile'
[...]
I deleted all the files I could find related to the image, re-downloaded the sif image but I still have this problem...
Is there anybody who knows how to solve this issue? Do I have to reinstall the whole system from scratch?
This is what I mean when I say that the experience in Code Aster is frustrating... as soon as you step out of the path beaten by EDF you find yourself in a field of landmines and what you could have done in one hour takes forever... and this is not acceptable when this is your job.
So... any hint anybody?
Andrea