Open CAV-Research-Lab opened 3 years ago
Hi! Which version of ignite do you have? To make code work, you have to have versions which are noted in the requirements.txt
When I run the code, I get the below errors,want can i do
Traceback (most recent call last):
File "/content/drive/MyDrive/Hands_on_DRL/Deep-Reinforcement-Learning-Hands-On-Second-Edition/Chapter08/01_dqn_basic.py", line 62, in
Hi! Something is wrong with your versions, especially ignite. Please check
On Sat, 30 Oct 2021, 06:21 Lynnehao, @.***> wrote:
When I run the code, I get the below errors,want can i do Traceback (most recent call last): File "/content/drive/MyDrive/Hands_on_DRL/Deep-Reinforcement-Learning-Hands-On-Second-Edition/Chapter08/01_dqn_basic.py", line 62, in common.setup_ignite(engine, params, exp_source, NAME) File "/content/drive/MyDrive/Hands_on_DRL/Deep-Reinforcement-Learning-Hands-On-Second-Edition/Chapter08/lib/common.py", line 158, in setup_ignite handler.attach(engine) File "/usr/local/lib/python3.7/dist-packages/ptan/ignite.py", line 35, in attach engine.register_events(*EpisodeEvents) File "/usr/local/lib/python3.7/dist-packages/ignite/engine/engine.py", line 222, in register_events raise TypeError(f"Value at {index} of event_names should be a str or EventEnum, but given {e}") TypeError: Value at 0 of event_names should be a str or EventEnum, but given EpisodeEvents.EPISODE_COMPLETED
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PacktPublishing/Deep-Reinforcement-Learning-Hands-On-Second-Edition/issues/47#issuecomment-955143391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAQE2Q5F56YHVSCMLSAFADUJNXFXANCNFSM4723HYCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
When I run the code, I get the below errors
AttributeError: module 'ignite' has no attribute 'EndOfEpisodeHandler'
how to solve the issue?