Open fardinabbasi opened 1 year ago
I would appreciate it if you could refrain from closing this issue, as there is no option to reopen it. I will close it myself once I have resolved the problem.
The AttributeError: 'NoneType' object has no attribute 'items'
was from return self._get_obs() if not terminated else None
.
I’ve made the change to self._get_obs() if not terminated else self.observation_space.sample(). However, I’m still encountering the error message: Cannot create PPOConfig from the given config_dict! Property stdout_file is not supported.
@ArturNiederfahrenhorst I would be thankful if you have time to take a look at it.
I have also encountered this problem. Have you resolved it?
_(PPO pid=2755) 2023-09-22 12:20:18,560 WARNING algorithm_config.py:2578 -- Setting exploration_config={}
because you set _enable_rl_module_api=True
. When RLModule API are enabled, exploration_config can not be set. If you want to implement custom exploration behaviour, please modify the forward_exploration
method of the RLModule at hand. On configs that have a default exploration config, this must be done with config.exploration_config={}
._
Hey @fardinabbasi , the repro script you provided is not sufficient. There are several (non trivial) imports missing. Could you provide a short, self-sufficient, and single reproduction script that I can just run and debug locally and that will just run without me having to add additional code to it? Thanks!
Hey @sven1977 ,
The issue observation = OrderedDict(sorted(observation.items())) AttributeError: 'NoneType'
object has no attribute 'items' has been addressed in this post. It primarily occurred because I returned self._get_obs() if not terminated else None
in the step function.
Nonetheless, I am still encountering the warning: WARNING algorithm_config.py:672 -- Cannot create PPOConfig from the provided config_dict! Property __stdout_file__ is not supported
.
嘿@sven1977, 问题
observation = OrderedDict(sorted(observation.items())) AttributeError: 'NoneType'
对象没有属性“items”已在本文中解决。这主要是因为我self._get_obs() if not terminated else None
在步骤函数中返回了。尽管如此,我仍然遇到警告:
WARNING algorithm_config.py:672 -- Cannot create PPOConfig from the provided config_dict! Property __stdout_file__ is not supported
。
Yes, so am I.
What happened + What you expected to happen
I want to train a PPO agent in my custom environment called RankingEnv, but I'm encountering several errors and warnings that result in the agent's termination. The majority of these issues are:
observation = OrderedDict(sorted(observation.items())) AttributeError: 'NoneType' object has no attribute 'items'
Costum Environment
Agent
Versions / Dependencies
Reproduction script
Issue Severity
High: It blocks me from completing my task.