question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] Check_Env numpy format issues

See original GitHub issue

Describe the bug Using check_env in a custom env that returns a numpy formated value leads to an AssertionError.

Code example I made a testcase, based on the offical guide 5.custom_gym_env. In the section “Testing the environment (Bug location)” the check_env was added, which leads to the following: AssertionError: The observation returned by the reset() method does not match the given observation space Testcase (np._bool error for “done” also appears after enclosing the returned observation value with [], which surpresses the error.)

System Info

  • colab

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
araffincommented, Feb 6, 2020

The environment works but for bad reasons (no strong typing enforced by Python). This could lead to hard to debug issues.

0reactions
araffincommented, Feb 20, 2020

How to solve this issue?

The error message is pretty explicit and it is not related to that issue.

Is it related to my custom env?

probably yes, but you have to know we don’t do tech support in Github issues. You may ask the question on StackOverflow or similar.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reporting bugs — NumPy v1.23 Manual
Reporting bugs#. File bug reports or feature requests, and make contributions (e.g. code patches), by opening a “new issue” on GitHub: NumPy Issues: ......
Read more >
Bug Reports - Quarto
We want to hear about Quarto bugs and, we want to fix those bugs! The following guidance will help us be as efficient...
Read more >
2.2. Advanced NumPy - Scipy Lecture Notes
Why; Reporting bugs; Contributing to documentation; Contributing features ... is the sub-dtype in the structured data, corresponding to the name format ...
Read more >
Contributing to pandas — pandas 1.5.2 documentation
Bug reports must: Include a short, self-contained Python snippet reproducing the problem. You can format the code nicely by using GitHub Flavored Markdown:....
Read more >
Bug reports and feature requests - Apache Arrow
The Jira project name for Arrow is “ARROW”. Required permissions¶. Any registered Apache Software Foundation (ASF) Jira account may create or assign Jira...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found