Healthcare-Robotics / assistive-gym

Assistive Gym, a physics-based simulation framework for physical human-robot interaction and robotic assistance.
MIT License
306 stars 73 forks source link

screeninfo error #2

Closed Neo-X closed 4 years ago

Neo-X commented 4 years ago

File "/home/gberseth/playground/assistive-gym/assistive_gym/envs/env.py", line 9, in from screeninfo import get_monitors File "/home/gberseth/playground/env/lib/python3.5/site-packages/screeninfo/init.py", line 1, in from .common import Enumerator, Monitor File "/home/gberseth/playground/env/lib/python3.5/site-packages/screeninfo/common.py", line 10 x: int ^ SyntaxError: invalid syntax

I found installing pip3 install screeninfo==0.2 fix the issue.

Zackory commented 4 years ago

Thank you for the update. Installing Assistive Gym should install screeninfo 0.6.1, which I have found to work on Python 3.6. Was screeninfo 0.6.1 throwing this issue? Version 0.2 is 3.5 years old.

Neo-X commented 4 years ago

Ahhh, the python3 virtual environment I created is using python3.5.

Zackory commented 4 years ago

I have pushed an update to the setup.py file. It should install screeninfo >= 0.6.1 if using Python >= 3.6, otherwise it will install screeninfo == 0.2. Let me know if this works for you!