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

[rllib] [RFC] Deprecate Python 2 / RLlib #4832

Merged
merged 1 commit into from May 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions python/ray/rllib/__init__.py
Expand Up @@ -3,6 +3,7 @@
from __future__ import print_function

import logging
import sys

# Note: do not introduce unnecessary library dependencies here, e.g. gym.
# This file is imported from the tune module in order to register RLlib agents.
Expand Down Expand Up @@ -30,6 +31,11 @@ def _setup_logger():
logger.addHandler(handler)
logger.propagate = False

if sys.version_info[0] < 3:
logger.warn(
"RLlib Python 2 support is deprecated, and will be removed "
"in a future release.")


def _register_all():

Expand Down