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: 'Viewer' object has no attribute 'gameframe' #5

Open
Gabriel0402 opened this issue Dec 29, 2022 · 5 comments
Open

AttributeError: 'Viewer' object has no attribute 'gameframe' #5

Gabriel0402 opened this issue Dec 29, 2022 · 5 comments

Comments

@Gabriel0402
Copy link

Gabriel0402 commented Dec 29, 2022

Try to make the experiment running, but none of the experiment could be run. There are errors like

1.PermissionError: [Errno 13] Permission denied: '/media//results'. (could be resolved by changing path)
2.AttributeError: 'dict' object has no attribute 'save_dir',..., (could be resolve by using [save_dir] instead of the dot notation)
3. AttributeError: 'dict' object has no attribute 'num_episodes'(does not know how to resolve)
4. Try to just run the gym environment without all the settings, but got the error:
AttributeError: 'Viewer' object has no attribute 'gameframe'

All these issues occurs on Mac OS Monterey with python 3.8, and Ubuntu 18.04 with python 3.8

Is there some working code that could be run with the openai gym?

@Limmen
Copy link
Owner

Limmen commented Feb 4, 2023

Hi, in the examples there are some hardcoded paths, to run the experiments you have to set the paths yourself and define where you want to store the results.

All the code can be run with openAI gym and the system specifications you listed.

@Lfang905
Copy link

Lfang905 commented Nov 5, 2023

Try to make the experiment running, but none of the experiment could be run. There are errors like

File "run.py", line 5, in
from gym_idsgame.config.runner_mode import RunnerMode
ModuleNotFoundError: No module named 'gym_idsgame'

It's questions like this that stop the experiment, how can I fix it?

@Limmen
Copy link
Owner

Limmen commented Nov 5, 2023

Hi @Lfang905, this repository is not maintained anymore. The code should work but you will need to update outdated libraries since the library versions were defined 4 years ago.

@Lfang905
Copy link

Lfang905 commented Nov 5, 2023

嗨,此存储库不再维护。代码应该可以工作,但您需要更新过时的库,因为库版本是在 4 年前定义的。

Thank you for your reply, but as a novice, do not know how to find the outdated library to replace.Can you give me a hint.

@Limmen
Copy link
Owner

Limmen commented Nov 5, 2023

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

3 participants