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

Exception after running the example from the documentation #4

Closed
OlgerSiebinga opened this issue Oct 1, 2021 · 2 comments
Closed

Comments

@OlgerSiebinga
Copy link

OlgerSiebinga commented Oct 1, 2021

When I run the example from the quick start page in the documentation, an exception occurs.

The command:
python main.py rrt maps/room1.png

The exception:

Traceback (most recent call last):
  File "main.py", line 287, in <module>
    environment.run()
  File "C:\Users\Olger\PycharmProjects\sbp-env\env.py", line 198, in run
    self.visualiser.terminates_hook()
  File "C:\Users\Olger\PycharmProjects\sbp-env\visualiser.py", line 148, in terminates_hook
    self.env_instance.sampler.visualiser.terminates_hook()
  File "C:\Users\Olger\PycharmProjects\sbp-env\env.py", line 126, in __getattr__
    return object.__getattribute__(self.visualiser, attr)
AttributeError: 'PygameEnvVisualiser' object has no attribute 'sampler'

The exception only occurs after the simulation has finished so it seems like a minor problem. Although I'm not really sure what happens at env.py, line 126, in __getattr__ and why. So, I don't have a proposed fix.

@OlgerSiebinga
Copy link
Author

@soraxas soraxas closed this as completed in 1cc0756 Oct 2, 2021
@soraxas
Copy link
Owner

soraxas commented Oct 2, 2021

Thanks @OlgerSiebinga for reporting this! It should be addressed in the latest commit

@soraxas soraxas reopened this Oct 2, 2021
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