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

Fix collection moudule DeprecationWarning #2046

Merged
merged 1 commit into from
May 31, 2023
Merged

Conversation

qianyi-sun
Copy link
Contributor

This warning usually appears at the beginning of a simulation as the following:

04:49:33 (.venv) kyber@kyber-Z370-X driving-smarts-2.competition-scenarios ±|master ✗|→ scl run ~/SMARTS/examples/control/chase_via_points.py t3/validation/02703945-4c1c-432d-9d6a-13a2d674bb2e_agents_1/
/home/kyber/SMARTS/smarts/sstudio/types/standard_metadata.py:24: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import Mapping
/home/kyber/SMARTS/.venv/lib/python3.8/site-packages/gymnasium/spaces/box.py:129: UserWarning: WARN: Box bound precision lowered by casting to float32
  gym.logger.warn(f"Box bound precision lowered by casting to {self.dtype}")
Using configuration from: /home/kyber/SMARTS/smarts/engine.ini
╭────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────┬────────────────────╮
│            Episode │     Sim T / Wall T │        Total Steps │        Steps / Sec │       Scenario Map │    Scenario Routes │     Mission (Hash) │             Scores │
├────────────────────┼────────────────────┼────────────────────┼────────────────────┼────────────────────┼──────────────

@qianyi-sun qianyi-sun self-assigned this May 30, 2023
@qianyi-sun qianyi-sun changed the title Fix DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working Fix collection moudule DeprecationWarning May 30, 2023
Copy link
Collaborator

@Gamenot Gamenot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad.

@qianyi-sun qianyi-sun merged commit fe04f52 into master May 31, 2023
@qianyi-sun qianyi-sun deleted the fix_collections_warning branch May 31, 2023 15:59
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 this pull request may close these issues.

4 participants