I am writing a job submission script for SLURM workload manager. First, I have loaded anaconda2/4.5.12 (including python 2.7) module. Then, I have created conda environment with Python3.7 version. I try to submit the script using "sbatsh" command, but I get this error:
Fatal Python error: initfsencoding: Unable to get the locale encoding
File "/cm/shared/apps/anaconda2/4.5.12/lib/python2.7/encodings/__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax
Current thread 0x00002aaaaaaffc00 (most recent call first):
/cm/local/apps/slurm/var/spool/job04287/slurm_script: line 19: 40032
Aborted python3 taxo.TXT
This is my script file:
#!/bin/bash
#
#SBATCH --job-name=taxjob
#SBATCH --nodes=4
#SBATCH --tasks-per-node=3
#SBATCH --time=0-03:00:00
#SBATCH --partition=shortq
#SBATCH --mem=24GB
#SBATCH --output=/home/s.e/tax/Ftest-%j.out
#SBATCH --error=/home/s.e/tax/Ftest-%j.err
module load anaconda2/4.5.12
source activate py37
python3 taxo.TXT