openai / universe

Universe: a software platform for measuring and training an AI's general intelligence across the world's supply of games, websites and other applications.
https://universe.openai.com
MIT License
7.47k stars 959 forks source link

Twisted compatible issue #221

Closed lucasjinreal closed 6 years ago

lucasjinreal commented 6 years ago

the newest universe may be have some compatible issue with required package Twisted:

Traceback (most recent call last):
  File "gym_eval.py", line 6, in <module>
    from environment import atari_env
  File "/Volumes/xs/CodeSpace/AISpace/rl_space/rl_atari_pytorch/environment.py", line 5, in <module>
    from universe import vectorized
  File "/Library/Python/2.7/site-packages/universe/__init__.py", line 22, in <module>
    from universe import error, envs
  File "/Library/Python/2.7/site-packages/universe/envs/__init__.py", line 1, in <module>
    import universe.envs.vnc_env
  File "/Library/Python/2.7/site-packages/universe/envs/vnc_env.py", line 9, in <module>
    from universe import error, pyprofile, rewarder, spaces, twisty, vectorized, vncdriver
  File "/Library/Python/2.7/site-packages/universe/rewarder/__init__.py", line 1, in <module>
    from universe.rewarder.rewarder_session import RewarderSession
  File "/Library/Python/2.7/site-packages/universe/rewarder/rewarder_session.py", line 8, in <module>
    from twisted.internet import defer, endpoints
  File "/Library/Python/2.7/site-packages/twisted/internet/endpoints.py", line 58, in <module>
    from twisted.protocols.tls import TLSMemoryBIOFactory
  File "/Library/Python/2.7/site-packages/twisted/protocols/tls.py", line 63, in <module>
    from twisted.internet._sslverify import _setAcceptableProtocols
  File "/Library/Python/2.7/site-packages/twisted/internet/_sslverify.py", line 38, in <module>
    TLSVersion.TLSv1_1: SSL.OP_NO_TLSv1_1,
AttributeError: 'module' object has no attribute 'OP_NO_TLSv1_1'

I don't know it is the gym issue or universe, how to solve this problem though?