-
Notifications
You must be signed in to change notification settings - Fork 30
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
Windows docker image uses pyreadline causing deprecation warnings #511
Comments
Digging through the docker image, here is the python dependency tree run with
|
Opened issue at Opened issue at |
If this isn't fixed upstream, |
I created xolox/python-humanfriendly#45 to avoid the dependency for Python 3.9. If the proposed patch get merged and released we can use the new version of |
I'm trying out patching CI as a temporary workaround: #518 |
I'm trying to use xolox/python-humanfriendly#45 and manually uninstall |
Fixes #511 Relevant issue upstream: pyreadline/pyreadline#65 Signed-off-by: Jacob Perron <[email protected]>
This will only be effective if Python 3.9 is being used. With Python 3.8 the deprecation warning is still around (since effectively the referenced PR doesn't change anything with Python < 3.9).
That sounds reasonable when the Python version is < 3.9. |
So, we can silence the warning by setting I also looked into programmatically ignoring the warning with something like:
But it is not obvious to me where this kind of warning suppression logic should live. |
Here's a couple not-so-great solutions I can think of:
|
It seems to me that we should just do this. It's not ideal, but given that there have been no commits to that repository for 5 years, I think we'll have to do it. The question becomes how we convince |
Installing a fork of pyreadline fixes the deprecation warnings (and test failures in rclpy): #519 |
See https://ci.ros2.org/view/All/job/test_ci_windows/198/python-deprecation-warnings/
The text was updated successfully, but these errors were encountered: