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
Import env errors #550
Comments
For me, the code:
Work just fine on pettingzoo==1.13.1. Could you say which version of pettingzoo you are running? |
I was able to reproduce the problem in colab. A weird, but effective workaround is to do this:
I have no idea why this works and not the earlier statement. Very mysterious. Maybe colab has some special python version they deploy? |
It is strange indeed but I can confirm I get the same error on my local machine too. Thanks for the fix though! |
Out of curiosity, which python version are you running? I haven't tested it with python 3.9 or 3.10 yet. |
Hey Ben. its 3.9.9 |
Thanks. I'll try to install a python3.9 environment and try to fix this soon. |
Can confirm the same. I'm running the 13lines tutorial with
|
@nikhilweee If you are using pettingzoo 1.12, this might be expecected behavior---if I'm not mistaken, then that version of pettingzoo contains pistonball_v3, not pistonball_v4. Try to see if the fix above
|
@benblack769 I just got this bug installing the newest version of pettingzoo on pypi in a virtualenv on GCP too. This is real |
using pz 1.13.1 and python 3.7.9 |
hello, i am using python3.8, pettingzoo 1.14.0, env = pistonball_v4.parallel_env(n_pistons=20, time_penalty=-0.1, when i use v5 |
So, for all future travelers, this issue comes up when upgrading Pettingzoo, for reasons we aren't able to figure out. IF you just uninstall/reinstall, the problem goes away |
Hello,
I am new to MARL and want to create custom parallel env in PettingZoo and wanted to play with it. I am getting the following import error when attempting to get the environments.
from pettingzoo.butterfly import pistonball_v4 env = pistonball_v4.env()
`
ImportError: cannot import name 'pistonball_v4' from 'pettingzoo.butterfly'
PS C:\Users\mvadr\Desktop\gym>
`
The text was updated successfully, but these errors were encountered: