Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'BytesIO' #9

Closed
SamiraZare opened this issue Aug 9, 2020 · 3 comments
Closed

AttributeError: 'NoneType' object has no attribute 'BytesIO' #9

SamiraZare opened this issue Aug 9, 2020 · 3 comments

Comments

@SamiraZare
Copy link

Hi,

I keep getting this error while trying to train it after the first results.

Updates 0, num timesteps 12800, FPS 1323
Last 64 training episodes: mean/median reward -152.7/-153.6, min/max reward -257.6/-87.9

Exception ignored in: <bound method SubprocVecEnv.del of <baselines.common.vec_env.subproc_vec_env.SubprocVecEnv object at 0x7f15d7111e10>>
Traceback (most recent call last):
File "/home/samira1/.local/lib/python3.6/site-packages/baselines/common/vec_env/subproc_vec_env.py", line 121, in del
File "/home/samira1/.local/lib/python3.6/site-packages/baselines/common/vec_env/vec_env.py", line 98, in close
File "/home/samira1/.local/lib/python3.6/site-packages/baselines/common/vec_env/subproc_vec_env.py", line 104, in close_extras
File "/usr/local/lib/python3.6/multiprocessing/connection.py", line 206, in send
File "/usr/local/lib/python3.6/multiprocessing/reduction.py", line 50, in dumps
AttributeError: 'NoneType' object has no attribute 'BytesIO'

@Zackory
Copy link
Contributor

Zackory commented Aug 9, 2020

Are you using Baselines 0.1.6?
You can install this version using:
pip3 install git+https://github.com/openai/baselines.git

@SamiraZare
Copy link
Author

Yes, I am using that. I used the tutorials here and installed all the requirements. It was working and training a couple of days ago. I installed it again, now it is giving me this error.

@SamiraZare
Copy link
Author

I fixed it! The issue was installing TensorFlow 1.14. It kept giving me this error when I installed Tensorflow 1.14. Now that I changed it to Tensorflow 2.2, it is working perfectly!

Thank you,
Samira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants