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: 'SharedArray' object has no attribute 'dtype' #110
Comments
Could you please provide system specs (OS, python verison, etc.) and give me your pip freeze? And did you use this file exactly? https://github.com/PettingZoo-Team/PettingZoo/blob/master/tutorials/13_lines.py |
Just a heads up, this is a common problem for windows users, see #100 for someone who had a similar issue. |
Thanks for your reply.
It doesn't work at all.And the error is about stable_baseline3 , "You should use natureCNN" is the attribute error.
Now it works correctly, but I have no idea why this happen . So is Supersuit not suitable for windows ? |
So when you set This error about natureCNN is a bit les clear to me, but it sounds like something you are doing to the preprocessing is confusing SB3. If you could post some complete (with imports and everything) code that you expect to work, but intsead the code fails, I can help you see what is going wrong. |
Closing as it's been awhile, please let us know if you need anything else. |
For your information, same problem today on MacOS, with the same tutorial.
#100 solves the problem by reducing |
@benblack769 I was getting this error too |
@jkterry1 I'll prioritize this. Of course, in the meantime, you can simply turn off multiprocessing by setting num_cpus=1 |
This was a change in python3.8 caused by changes in the core MacOS system. See the following trail:
It might be necessary to make changes to the 13 lines tutorial as well as changes to supersuit to get this to work (putting the code after a |
@benblack769 this was only happening to me in Ubuntu |
@jkterry1 If you could give more details as to what your setup was when this error was triggered that would be great. Typically, this would happen with "spawn" multiprocessing, which is a default on MacOS or Windows, but "fork" multiprocessing is the default on linux. |
Out of curiosity:
I had a similar error and if I am not entirely mistaken that fixed that error for me. |
Ah. That would be a bug. |
@wittenator Thanks for pointing this out! I didn't know that it was possible for process shared data to be passed to spawn environments, but I guess they can. I went ahead and tested it in the PR and it seems to work. |
when I try the tutorial of pistonball, I met this attribute error. But I have no idea that what should do. So what should I do to deal with the error?
The text was updated successfully, but these errors were encountered: