title: python3: symbol lookup error: python3: undefined symbol: _Py_LegacyLocaleDetected when using slurm
body: <p>Good morning, i´ve encountered the following error message <code>python3: symbol lookup error: python3: undefined symbol: _Py_LegacyLocaleDetected</code> when trying to run a script using slurm.</p>
  <p>the script is a deep learning task using pytorch, torchvision, tensorboard and configparser.
  tensorboard and configparser are installed in the venv that is used, pytorch is loaded as module from the server <code>module load PyTorch/1.1.0-foss-2019a-Python-3.6.8</code>
  I think the error has to do something with versioning, but i haven´t found anything useful on google.
  any ideas how to fix it?</p>
  <p>Here´s a list of all loaded modules:
  Currently Loaded Modules:</p>
  <ol>
  <li>binutils/.2.31.1-GCCcore-8.2.0              (H)</li>
  <li>zlib/.1.2.11-GCCcore-8.2.0                  (H)</li>
  <li>numactl/.2.0.12-GCCcore-8.2.0               (H)</li>
  <li>XZ/.5.2.4-GCCcore-8.2.0                     (H)</li>
  <li>libxml2/.2.9.8-GCCcore-8.2.0                (H)</li>
  <li>libpciaccess/.0.14-GCCcore-8.2.0            (H)</li>
  <li>hwloc/.1.11.11-GCCcore-8.2.0                (H)</li>
  <li>OpenMPI/.3.1.3-GCC-8.2.0-2.31.1             (H)</li>
  <li>OpenBLAS/.0.3.5-GCC-8.2.0-2.31.1            (H)</li>
  <li>GCC/8.2.0-2.31.1</li>
  <li>gompi/.2019a                                (H)</li>
  <li>FFTW/.3.3.8-gompi-2019a                     (H)</li>
  <li>ScaLAPACK/.2.0.2-gompi-2019a-OpenBLAS-0.3.5 (H)</li>
  <li>foss/2019a</li>
  <li>StdEnv</li>
  <li>GCCcore/.8.2.0                              (H)</li>
  <li>bzip2/.1.0.6-GCCcore-8.2.0                  (H)</li>
  <li>ncurses/.6.1-GCCcore-8.2.0                  (H)</li>
  <li>libreadline/.7.0-GCCcore-8.2.0              (H)</li>
  <li>Tcl/8.6.9-GCCcore-8.2.0</li>
  <li>SQLite/.3.27.2-GCCcore-8.2.0                (H)</li>
  <li>GMP/.6.1.2-GCCcore-8.2.0                    (H)</li>
  <li>libffi/.3.2.1-GCCcore-8.2.0                 (H)</li>
  <li>expat/.2.2.6-GCCcore-8.2.0                  (H)</li>
  <li>libpng/.1.6.36-GCCcore-8.2.0                (H)</li>
  <li>freetype/.2.10.0-GCCcore-8.2.0              (H)</li>
  <li>util-linux/.2.33.1-GCCcore-8.2.0            (H)</li>
  <li>fontconfig/.2.13.1-GCCcore-8.2.0            (H)</li>
  <li>X11/.20180604-GCCcore-8.2.0                 (H)</li>
  <li>Tk/8.6.9-GCCcore-8.2.0</li>
  <li>Python/3.6.8-foss-2019a</li>
  <li>CUDA/10.1.105</li>
  <li>cuDNN/7.5.0-CUDA-10.1.105</li>
  <li>magma/.2.4.0-foss-2019a-CUDA-10.1.105       (H)</li>
  <li>libyaml/.0.2.2-GCCcore-8.2.0                (H)</li>
  <li>PyYAML/.5.1-foss-2019a-Python-3.6.8         (H)</li>
  <li>NASM/.2.14.02-GCCcore-8.2.0                 (H)</li>
  <li>x264/.20181203-GCCcore-8.2.0                (H)</li>
  <li>LAME/.3.100-GCCcore-8.2.0                   (H)</li>
  <li>x265/.3.0-GCCcore-8.2.0                     (H)</li>
  <li>FriBidi/.1.0.5-GCCcore-8.2.0                (H)</li>
  <li>FFmpeg/4.1.3-foss-2019a</li>
  <li>libjpeg-turbo/.2.0.2-GCCcore-8.2.0          (H)</li>
  <li>LibTIFF/.4.0.10-GCCcore-8.2.0               (H)</li>
  <li>JasPer/.2.0.16-GCCcore-8.2.0                (H)</li>
  <li>Java/1.8.0_202</li>
  <li>ant/.1.10.5-Java-1.8                        (H)</li>
  <li>gettext/.0.19.8.1-GCCcore-8.2.0             (H)</li>
  <li>PCRE/.8.42-GCCcore-8.2.0                    (H)</li>
  <li>GLib/.2.54.3-GCCcore-8.2.0                  (H)</li>
  <li>ATK/.2.28.1-foss-2019a                      (H)</li>
  <li>Gdk-Pixbuf/.2.36.12-foss-2019a              (H)</li>
  <li>pixman/.0.38.0-GCCcore-8.2.0                (H)</li>
  <li>cairo/.1.16.0-GCCcore-8.2.0                 (H)</li>
  <li>HarfBuzz/.2.2.0-foss-2019a                  (H)</li>
  <li>Pango/.1.42.4-foss-2019a                    (H)</li>
  <li>GTK+/.2.24.32-foss-2019a                    (H)</li>
  <li>OpenCV/4.0.1-foss-2019a-Python-3.6.8</li>
  <li>NCCL/.2.4.2-CUDA-10.1.105                   (H)</li>
  <li>PyTorch/1.1.0-foss-2019a-Python-3.6.8</li>
  </ol>