tianshou: AttributeError: module 'tensorflow' has no attribute 'io'
-
I have marked all applicable categories:
- exception-raising bug
- RL algorithm bug
- documentation request (i.e. “X is missing from the documentation.”)
- new feature request
-
I have visited the source website, and in particular read the known issues
-
I have searched through the issue categories for duplicates
-
I have mentioned version numbers, operating system and environment, where applicable:
import tianshou, torch, sys print(tianshou.__version__, torch.__version__, sys.version, sys.platform)
python test/discrete/test_pg.py --seed 0 --render 0.03 Traceback (most recent call last): File “test/discrete/test_pg.py”, line 173, in <module> test_pg() File “test/discrete/test_pg.py”, line 144, in test_pg writer = SummaryWriter(log_path) File “/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/utils/tensorboard/writer.py”, line 225, in init self._get_file_writer() File “/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/utils/tensorboard/writer.py”, line 256, in _get_file_writer self.flush_secs, self.filename_suffix) File “/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/utils/tensorboard/writer.py”, line 66, in init log_dir, max_queue, flush_secs, filename_suffix) File “/anaconda3/envs/pytorch/lib/python3.6/site-packages/tensorboard/summary/writer/event_file_writer.py”, line 76, in init if not tf.io.gfile.exists(logdir): File “/anaconda3/envs/pytorch/lib/python3.6/site-packages/tensorboard/lazy.py”, line 68, in getattr return getattr(load_once(self), attr_name) AttributeError: module ‘tensorflow’ has no attribute ‘io’
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18
yeah, I pip install tensorflow manually and this problem has been solved. Thanks!