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

code is not working because "AttributeError: can't set attribute. " #4

Open
xjk1354667160 opened this issue Mar 18, 2022 · 1 comment

Comments

@xjk1354667160
Copy link

my python is 3.8, tf2.0, I ran this code on my conda spyder called "pypow_14_a3c_final.py" and I got a problem: Using custom reward signal CustomRewardSignal of file F:L2RPN-using-A3C-master\public_data\reward_signal.py Traceback (most recent call last): File "F\L2RPN-using-A3C-master\pypow_14_a3c_final.py", line 310, in env = set_environement() File "F:...\L2RPN-using-A3C-master\pypow_14_a3c_final.py", line 43, in set_environement game_over_mode=game_over_mode) File "...\lib\site-packages\pypownet\environment.py", line 812, in init self.reset() File "C...\lib\site-packages\pypownet\environment.py", line 831, in reset self.game.n_timesteps_horizon_maintenance) File "...\lib\site-packages\pypownet\environment.py", line 374, in init self.shape = seek_shapes(self, ()) AttributeError: can't set attribute. I want to seek the reason , can you help me please?

@dqhzsh
Copy link

dqhzsh commented Apr 26, 2024

my python is 3.8, tf2.0, I ran this code on my conda spyder called "pypow_14_a3c_final.py" and I got a problem: Using custom reward signal CustomRewardSignal of file F:L2RPN-using-A3C-master\public_data\reward_signal.py Traceback (most recent call last): File "F\L2RPN-using-A3C-master\pypow_14_a3c_final.py", line 310, in env = set_environement() File "F:...\L2RPN-using-A3C-master\pypow_14_a3c_final.py", line 43, in set_environement game_over_mode=game_over_mode) File "...\lib\site-packages\pypownet\environment.py", line 812, in init self.reset() File "C...\lib\site-packages\pypownet\environment.py", line 831, in reset self.game.n_timesteps_horizon_maintenance) File "...\lib\site-packages\pypownet\environment.py", line 374, in init self.shape = seek_shapes(self, ()) AttributeError: can't set attribute. I want to seek the reason , can you help me please?

Did you solve a problem?

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

2 participants