conda-forge / code-aster-feedstock

A conda-smithy repository for code-aster.
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Missing config.txt when trying to run .export file with as_run #77

Closed Krande closed 1 month ago

Krande commented 2 months ago

Solution to issue cannot be found in the documentation.

Issue

Getting error referring to missing config.txt when trying to run .export file with as_run

(myca-env) kristoffer@kristoffer-PC:~$ as_run /home/kristoffer/code/code-aster-src/astest/adlv100a.export

<I> UNEXPECTED_VALUE Unknown mode (''), use 'interactif' instead

<F>_FILE_NOT_FOUND file not found : config.txt

Installed packages

# packages in environment at /home/kristoffer/miniforge3/envs/myca-env:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
ca-certificates           2024.7.4             hbcca054_0    conda-forge
code-aster                17.1.0          np123py311hc4159b2_1    conda-forge
icu                       75.1                 he02047a_0    conda-forge
ld_impl_linux-64          2.40                 hf3520f5_7    conda-forge
libblas                   3.9.0           23_linux64_openblas    conda-forge
libboost                  1.84.0               h0ccab89_5    conda-forge
libboost-devel            1.84.0               h00ab1b0_5    conda-forge
libboost-headers          1.84.0               ha770c72_5    conda-forge
libboost-python           1.84.0          py311h06317a3_5    conda-forge
libboost-python-devel     1.84.0          py311hbd00459_5    conda-forge
libcblas                  3.9.0           23_linux64_openblas    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc-ng                 14.1.0               h77fa898_0    conda-forge
libgfortran-ng            14.1.0               h69a702a_0    conda-forge
libgfortran5              14.1.0               hc5f4f2c_0    conda-forge
libgomp                   14.1.0               h77fa898_0    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
liblapack                 3.9.0           23_linux64_openblas    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libopenblas               0.3.27          pthreads_hac2b453_1    conda-forge
libscotch                 7.0.4                h2fe6a88_5    conda-forge
libsqlite                 3.46.0               hde9e2c9_0    conda-forge
libstdcxx-ng              14.1.0               hc0a3c3a_0    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.7               he7c6b58_4    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
mfront                    4.2.0           py311hda16cbd_2    conda-forge
mgis                      2.2             py311h0522a6a_5    conda-forge
miss3d                    6.7                  ha65e5b9_5    conda-forge
ncurses                   6.5                  h59595ed_0    conda-forge
numpy                     1.23.5          py311h7d28db0_0    conda-forge
openssl                   3.3.1                h4bc722e_2    conda-forge
pip                       24.2               pyhd8ed1ab_0    conda-forge
python                    3.11.9          hb806964_0_cpython    conda-forge
python_abi                3.11                    4_cp311    conda-forge
readline                  8.2                  h8228510_1    conda-forge
scotch                    7.0.4                hd53efc5_5    conda-forge
setuptools                72.1.0             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tzdata                    2024a                h0c530f3_0    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
zlib                      1.3.1                h4ab18f5_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

Environment info

active environment : myca-env
    active env location : /home/kristoffer/miniforge3/envs/myca-env
            shell level : 2
       user config file : /home/kristoffer/.condarc
 populated config files : /home/kristoffer/miniforge3/.condarc
                          /home/kristoffer/.condarc
          conda version : 23.11.0
    conda-build version : not installed
         python version : 3.10.13.final.0
                 solver : libmamba (default)
       virtual packages : __archspec=1=zen3
                          __conda=23.11.0=0
                          __glibc=2.39=0
                          __linux=6.8.0=0
                          __unix=0=0
       base environment : /home/kristoffer/miniforge3  (writable)
      conda av data dir : /home/kristoffer/miniforge3/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/kristoffer/miniforge3/pkgs
                          /home/kristoffer/.conda/pkgs
       envs directories : /home/kristoffer/miniforge3/envs
                          /home/kristoffer/.conda/envs
               platform : linux-64
             user-agent : conda/23.11.0 requests/2.31.0 CPython/3.10.13 Linux/6.8.0-40-generic ubuntu/24.04 glibc/2.39 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.6
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
ldallolio commented 2 months ago

Hi @Krande

I think I know this one, the export you are running is missing a line like this one :

P mode interactif

In case you are missing other lines, these might be helpful too :

P actions make_etude P mode interactif P version stable

This sometimes happens to me when I try to run a test export file "directly" with as_run, instead of running it this way :

as_run --test forma01a

All the best,

Krande commented 2 months ago

I see. I don't really use as_run myself.

But I was made aware of the issue in https://forum.code-aster.org/public/d/27218-where-is-code-aster-website-going/9