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

TypeError: unsupported operand type(s) for -: 'int' and 'NoneType' #33

Open
fmalato opened this issue Oct 21, 2022 · 0 comments · May be fixed by #40
Open

TypeError: unsupported operand type(s) for -: 'int' and 'NoneType' #33

fmalato opened this issue Oct 21, 2022 · 0 comments · May be fixed by #40

Comments

@fmalato
Copy link

fmalato commented Oct 21, 2022

I installed the environment as specified in the README.md file, using conda:

git clone https://github.com/iglu-contest/gridworld.git
cd gridworld && conda env create -f env.yml

Then I found out that gridworld doesn't get installed, so I installed it manually with cd gridworld && pip install -e .

Now when I try to run the example code, I get this error:

Traceback (most recent call last):
  File "main.py", line 17, in <module>
    obs, reward, done, info = env.step(action)
  File "/home/federima/miniconda3/envs/gridworld_env/lib/python3.7/site-packages/gym/wrappers/order_enforcing.py", line 13, in step
    observation, reward, done, info = self.env.step(action)
  File "/home/federima/PycharmProjects/gridworld_test/gridworld/gridworld/env.py", line 326, in step
    obs, reward, done, info = super().step(action)
  File "/home/federima/miniconda3/envs/gridworld_env/lib/python3.7/site-packages/gym/core.py", line 280, in step
    return self.env.step(action)
  File "/home/federima/PycharmProjects/gridworld_test/gridworld/gridworld/env.py", line 290, in step
    synthetic_grid = self.grid - self._synthetic_init_grid
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'

@fmalato fmalato changed the title pyglet render showing no error but black screen AttributeError: 'GridWorld' object has no attribute '_synthetic_task' Oct 21, 2022
@fmalato fmalato changed the title AttributeError: 'GridWorld' object has no attribute '_synthetic_task' TypeError: unsupported operand type(s) for -: 'int' and 'NoneType' Oct 21, 2022
@A-lex-Ra A-lex-Ra linked a pull request Oct 3, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant