Erreur can't find a usable init.tcl

Bonjour
j'ai une erreur en tentant d'utiliser le pipeline DILS qui utilise snakemake. J'ai déjà pu l'utiliser plusieurs fois sur le cluster IFB mais lors de mes derniers essais, j'ai eu l'erreur suivante:

application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library

Je copie ci dessous l'intégralité du log
merci
Didier

########################################
Date: 2024-03-25T09:33:30+00:00
User: daurelle
Host: cpu-node-102
Job Name: DILS_popphyl_Eunicella
Job Id: 38555075
Directory: /shared/home/daurelle
########################################
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading snakemake/5.3.0
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading r/3.6.3
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading python/2.7
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading snakemake/8.9.0
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading r/3.6.3
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Loading python/2.7
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
/shared/home/daurelle/DILS/bin/DILS_2pop.sh: line 10: snakemake: command not found
rm: cannot remove '.snakemake': No such file or directory
application-specific initialization failed: Can't find a usable init.tcl in the following directories: 
    /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.7/library /tcl8.6.7/library



This probably means that Tcl wasn't installed properly.

Unloading pypy/2.7-5.10.0
  ERROR: Can't find a usable init.tcl in the following directories: 
        /opt/prefix/lib/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library
    /tcl8.6.7/library /tcl8.6.7/library
    This probably means that Tcl wasn't installed properly.
########################################
Job DILS popphyl finished 2024-03-25T09:33:31+00:00

Bonjour,

Pouvez-vous nous partager votre script ?

Bonjour
voici le script
merci
Didier

#!/bin/bash

################################ Slurm options #################################

### Job name
#SBATCH --job-name=DILS_popphyl_Eunicella

### Limit run time "days-hours:minutes:seconds"
#SBATCH --time=12:00:00

### Requirements
#SBATCH --partition=fast
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --mem-per-cpu=48GB
#SBATCH --account=speciation_temperate_gorgonians

### Email
#SBATCH --mail-user=didier.aurelle@univ-amu.fr
#SBATCH --mail-type=ALL

### Output
#SBATCH --output=/shared/home/daurelle/DILSpopphyl-%j.out

################################################################################

echo '########################################'
echo 'Date:' $(date --iso-8601=seconds)
echo 'User:' $USER
echo 'Host:' $HOSTNAME
echo 'Job Name:' $SLURM_JOB_NAME
echo 'Job Id:' $SLURM_JOB_ID
echo 'Directory:' $(pwd)
echo '########################################'

# modules loading

module load pypy/2.7-5.10.0
module load snakemake/5.3.0
module load r/3.6.3
module load python/2.7


cd /shared/projects/speciation_temperate_gorgonians/


/shared/home/daurelle/DILS/bin/DILS_2pop.sh /shared/projects/speciation_temperate_gorgonians/cavolini_verrucosa_variable_popphyl_reduit3.yaml

rm -r .snakemake



module purge

echo '########################################'
echo 'Job DILS popphyl finished' $(date --iso-8601=seconds)

Bonjour Didier,

En attendant que l'on mette en place une solution, je vous invite à exporter la variable d'environnement "TCL_LIBRARY" comme suit et de charger ensuite les modules:

export TCL_LIBRARY=/shared/ifbstor1/software/miniconda/envs/pypy-2.7-5.10.0/lib/tcl
module load pypy/2.7-5.10.0
...

Vous pouvez simplement rajouter cette export dans votre script.

Bonjour
ça fonctionne en exportant la variable, merci!
Didier