'm a beginner
How can I solve it?
Cent7
tensorflow 2.7.0
Python 3.8.8
First, try seq2seq with the prepared model and dataset.
(Try Walkthrough as it is)
[root@localhost ~]# PROBLEM=translate_ende_wmt32k
[root@localhost ~]# MODEL=transformer
[root@localhost ~]# HPARAMS=transformer_base_single_gpu
[root@localhost ~]# t2t-datagen \
>  --data_dir=$DATA_DIR \
>  --tmp_dir=$TMP_DIR \
>  --problem=$PROBLEM

type or paste code here
2022-01-14 16:25:53.603694: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2022-01-14 16:25:53.603743: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
  File "/root/anaconda3/bin/t2t-datagen", line 4, in <module>
    __import__('pkg_resources').run_script('tensor2tensor-optuna==1.10.0', 't2t-datagen')
  File "/root/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 651, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/root/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1448, in run_script
    exec(code, namespace, namespace)
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/EGG-INFO/scripts/t2t-datagen", line 18, in <module>
    from tensor2tensor.bin import t2t_datagen
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/bin/t2t_datagen.py", line 39, in <module>
    from tensor2tensor import problems as problems_lib  # pylint: disable=unused-import
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/problems.py", line 33, in <module>
    all_problems.import_modules(all_problems.ALL_MODULES)
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/data_generators/all_problems.py", line 120, in import_modules
    importlib.import_module(module)
  File "/root/anaconda3/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/data_generators/algorithmic.py", line 26, in <module>
    from tensor2tensor.data_generators import problem
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/data_generators/problem.py", line 31, in <module>
    from tensor2tensor.layers import modalities
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/layers/modalities.py", line 22, in <module>
    from tensor2tensor.layers import common_attention
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/layers/common_attention.py", line 4344, in <module>
    @expert_utils.add_var_scope()
  File "/root/anaconda3/lib/python3.8/site-packages/tensor2tensor_optuna-1.10.0-py3.8.egg/tensor2tensor/utils/expert_utils.py", line 68, in add_var_scope
    return add_scope(scope, scope_fn=tf.variable_scope)
AttributeError: module 'tensorflow' has no attribute 'variable_scope'