I would like to run some tensorflow codes that requires tensorlayer library (https://tensorlayer.readthedocs.io/en/latest/) and numpy. I thought that I could create a virtualenv
and install all my dependencies her but virtualenv
seem not working.
I load tensorflow as following
module load GCC/8.2.0-2.31.1 OpenMPI/3.1.3
module load TensorFlow/2.0.0-Python-3.7.2
But I have an error…
Here is my slurm out file
Inactive Modules:
1) Python/3.7.2 4) Tcl/8.6.9 7) libpciaccess/0.14 10) ncurses/6.1
2) SQLite/3.27.2 5) XZ/5.2.4 8) libreadline/8.0 11) numactl/2.0.12
3) Szip/2.1.1 6) hwloc/1.11.11 9) libxml2/2.9.8
Due to MODULEPATH changes, the following have been reloaded:
1) GMP/6.1.2 2) bzip2/1.0.6 3) libffi/3.2.1 4) zlib/1.2.11
The following have been reloaded with a version change:
1) GCCcore/8.2.0 => GCCcore/6.3.0 2) binutils/2.31.1 => binutils/2.27
Activating Modules:
1) Python/3.6.1 3) Tcl/8.6.6 5) libreadline/7.0
2) SQLite/3.17.0 4) XZ/5.2.3 6) ncurses/6.0
Traceback (most recent call last):
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/opt/ebsofts/MPI/intel/2017.1.132-GCC-6.3.0-2.27/impi/2017.1.132/Python/3.6.1/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/opt/ebsofts/MPI/intel/2017.1.132-GCC-6.3.0-2.27/impi/2017.1.132/Python/3.6.1/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /opt/ebsofts/Core/GCCcore/6.3.0/lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/_pywrap_tensorflow_internal.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "train.py", line 9, in <module>
import tensorflow as tf
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow/__init__.py", line 98, in <module>
from tensorflow_core import *
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/__init__.py", line 40, in <module>
from tensorflow.python.tools import module_util as _module_util
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow/__init__.py", line 50, in __getattr__
module = self._load()
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow/__init__.py", line 44, in _load
module = _importlib.import_module(self.__name__)
File "/opt/ebsofts/MPI/intel/2017.1.132-GCC-6.3.0-2.27/impi/2017.1.132/Python/3.6.1/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/opt/ebsofts/MPI/intel/2017.1.132-GCC-6.3.0-2.27/impi/2017.1.132/Python/3.6.1/lib/python3.6/imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "/opt/ebsofts/MPI/intel/2017.1.132-GCC-6.3.0-2.27/impi/2017.1.132/Python/3.6.1/lib/python3.6/imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: /opt/ebsofts/Core/GCCcore/6.3.0/lib64/libstdc++.so.6: version `CXXABI_1.3.11' not found (required by /opt/ebsofts/TensorFlow/2.0.0-foss-2019a-Python-3.7.2/lib/python3.7/site-packages/tensorflow_core/python/_pywrap_tensorflow_internal.so)
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
srun: error: gpu006: task 0: Exited with exit code 1