Closed seboz123 closed 2 years ago
Hi @seboz123
Are you able to connect to and train the environment using the mlagents-learn
command? That can give some context as to whether it is an issue with the gym wrapper/baselines or if it is an issue with the environment itself.
mlagents-learn works just fine for me
Can you share the code you are running? This error in the trace seems to be the essential one:
mlagents_envs.exception.UnityWorkerInUseException: Couldn't start socket communication because worker number 0 is still in use. You may need to manually close a previously opened environment or use a different worker number.
This suggests that the same port number is being used for more than one Unity environment, thus causing the issue.
I also got the same error:
TypeError: __init__() got multiple values for argument 'use_visual'
Is this has something to do with the multi-agents?
I deleted all the other agents except one but still got the same error
Hi @Dionysus326
There have been some changes to the gym wrapper recently which may have made the DQN tutorial no longer compatible. I'll log this as a bug, and have someone on the team take a look.
Okay, thanks for the information. If you can update the tutorial would be nice though. Anyway, thanks a lot.
Apologies for the bump, but is there any update on this issue?
I also come here to bump that the Python API and the Gym Wrapper don't get enough love. Baselines isn't supporting TF2 and the docs are obviously out of date (should update to stable-baselines3, for example).
Thank you for your comments. We’ve documented your feedback and will prioritize when appropriate.
This issue has been automatically marked as stale because it has not had activity in the last 28 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 42 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had activity in the last 28 days. It will be closed in the next 14 days if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 42 days. If this issue is still valid, please ping a maintainer. Thank you for your contributions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug I am trying to run the example of the DQN Baseline Algorithm. The algorithm does not seem to work properly. It just uses interference mode. When I remove the neural network from the brain, the window opens, but the agent just does nothing.
To Reproduce Steps to reproduce the behavior:
Console logs / stack traces
Environment (please complete the following information):