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

protocols/rpc.py:26: DeprecationWarning: 'xdrlib' is deprecated #387

Open
LongnoseRob opened this issue Jul 23, 2023 · 1 comment
Open

Comments

@LongnoseRob
Copy link
Contributor

While tunning pytest on testsuite/test_serial.py (see #386), a deprecation warning was indicated:

============================================================================================================= warnings summary ==============================================================================================================
protocols/rpc.py:26
  /home/robby/builds/pyvisa-py/pyvisa_py/protocols/rpc.py:26: DeprecationWarning: 'xdrlib' is deprecated and slated for removal in Python 3.13
    import xdrlib

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================================================================================================= 1 passed, 1 warning in 0.14s ========================================================================================================

@MatthieuDartiailh
Copy link
Member

xdrlib will be removed from the stdlib since it is considered dead batteries. I was planning to wait and see if a third party copy was emerging.

Otherwise we could simply vendor it (along with tests).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants