Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2022-04-08 11:54:45

m_golbs
Member
From: Germany
Registered: 2009-11-09
Posts: 126

EXECUTION_CODE_ASTER_EXIT_32185=1 No module named 'numpy'

Hello,

under salome_meca 2021.0.0-2-20211014 Scibian9 singularity container I have the following output:

..
FIN();

# ------------------------------------------------------------------------------
Command line #1:
    ulimit -c unlimited ; ulimit -t 60000000 ; ( /opt/python/3.6.5/bin/python3 -X faulthandler -- ./2022-04-06-Blechkiste_1-DKT-2.5mm.comm.changed.py --last --link="F::libr::/home/golbs/tmp/2022-04-08_15.5/2022-03-01-H257-Fops-Dach-3mm.unv::D::19" -max_base 1200000 --memory 22000.0 --tpmax 12000000 --numthreads 4 ; echo $? > _exit_code_ ) 2>&1 | tee -a fort.6
Traceback (most recent call last):
  File "./2022-04-06-Blechkiste_1-DKT-2.5mm.comm.changed.py", line 7, in <module>
    from code_aster.Commands import *
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Commands/__init__.py", line 30, in <module>
    from ..Supervis import CO
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Supervis/__init__.py", line 27, in <module>
    from .CommandSyntax import CommandSyntax
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Supervis/CommandSyntax.py", line 60, in <module>
    from ..Cata import Commands
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Cata/Commands/__init__.py", line 23, in <module>
    from ..Language.SyntaxObjects import Command
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Cata/Language/SyntaxObjects.py", line 47, in <module>
    from .SyntaxChecker import checkCommandSyntax
  File "/opt/salome_meca/Salome-V2021-s9/tools/Code_aster_stable-1540/lib/aster/code_aster/Cata/Language/SyntaxChecker.py", line 29, in <module>
    import numpy
ModuleNotFoundError: No module named 'numpy'

EXECUTION_CODE_ASTER_EXIT_32185=1


restoring result databases from 'BASE_PREC'...
WARNING: execution failed (command file #1): <F>_ABNORMAL_ABORT

# ------------------------------------------------------------------------------
Content of /tmp/run_aster_xd_hm49u after execution:
.:
total 28
-rw-rw-r-- 1 golbs golbs 9347 avril  8 12:38 2022-04-06-Blechkiste_1-DKT-2.5mm.comm.changed.py
-rw-rw-r-- 1 golbs golbs  722 avril  8 12:38 32185.export
-rw-rw-r-- 1 golbs golbs 1474 avril  8 12:38 fort.6
drwxrwxr-x 2 golbs golbs 4096 avril  8 12:38 REPE_IN
drwxrwxr-x 2 golbs golbs 4096 avril  8 12:38 REPE_OUT

REPE_OUT:
total 0


# ------------------------------------------------------------------------------
Copying results
copying 'fort.6' to '/home/golbs/tmp/2022-04-08_15.5/2022-04-06-Blechkiste_1-DKT-2.5mm.mess'...
WARNING: file not found: fort.8
WARNING: file not found: fort.80

# ------------------------------------------------------------------------------
Execution summary
                                      cpu     system    cpu+sys    elapsed
--------------------------------------------------------------------------------
Preparation of environment           0.00       0.00       0.00       0.00
Execution of code_aster              0.07       0.05       0.12       0.26
Copying results                      0.00       0.02       0.02       0.00
--------------------------------------------------------------------------------
Total                                0.08       0.07       0.15       0.26
--------------------------------------------------------------------------------

------------------------------------------------------------
--- DIAGNOSTIC JOB : <F>_ABNORMAL_ABORT
------------------------------------------------------------

But in my comm file is not numpy option. In the container with Python 3.5.3 is import numpy possible.

Other users say to singularity "Singularity is a fairly problematic system given the complexity of how it treats the native environment and folders/permissions outside the container."

sample...
singularity run --cleanenv \
                --no-home \
                -B $(pwd):$(pwd) \
                ~/bin/sample/sample_x.x.x.sif \
                /opt/sample/bin/run_sample \
..
...
                --reads=..... \
                --regions=..... \
..
..
                --num_shards=16

How I have to start the singularity for salome?

Thanks and greeting Markus

Last edited by m_golbs (2022-04-11 17:16:29)


The superfluous chase, is to miss the essential.
Jules Saliège

Offline

#2 2022-05-16 13:51:58

m_golbs
Member
From: Germany
Registered: 2009-11-09
Posts: 126

Re: EXECUTION_CODE_ASTER_EXIT_32185=1 No module named 'numpy'

Hello,

problem solved!

My mistake. I use:

/usr/bin/singularity shell /home/golbs/tmp/salome_meca-lgpl-2021.0.0-2-20211014-scibian-9.sif

(work, but with python3.5 and CA 14.8))

but
/usr/bin/singularity run /home/golbs/tmp/salome_meca-lgpl-2021.0.0-2-20211014-scibian-9.sif shell

(work also, but with python3.6)
and are correct for CA 15.4.

Greeting Markus

Last edited by m_golbs (2022-05-16 14:07:39)


The superfluous chase, is to miss the essential.
Jules Saliège

Offline