vojtamolda / autodrome

Framework and OpenAI Gym environment for autonomous vehicle development.
http://tiny.cc/autodrome
MIT License
224 stars 20 forks source link

error :import autodrome.envs #5

Closed mingkin closed 3 years ago

mingkin commented 5 years ago
import autodrome.envs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/wm/anaconda3/pkgs/autodrome-master/autodrome/__init__.py", line 1, in <module>
    from .simulator import ETS2, ATS
  File "/Users/wm/anaconda3/pkgs/autodrome-master/autodrome/simulator/__init__.py", line 1, in <module>
    from .simulator import Simulator
  File "/Users/wm/anaconda3/pkgs/autodrome-master/autodrome/simulator/simulator.py", line 61
    print(f"Setting up mod with map in '{mod_dir}'...")
                                                     ^
SyntaxError: invalid syntax
vojtamolda commented 5 years ago

Hello @mingkin,

What version of Python are you using? The print(f"Something {var}") (aka the f-string syntax or formatted string literal) is supported since Python 3.6. Check out PEP 498 for more details.

I'm not actually sure if the documentation mentions the required Python version anywhere. So I apologize if you can't find it. I'll be happy to fix it.