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

xdrlib dropped from Py3.13 #34

Open
prjemian opened this issue Apr 24, 2024 · 5 comments
Open

xdrlib dropped from Py3.13 #34

prjemian opened this issue Apr 24, 2024 · 5 comments

Comments

@prjemian
Copy link
Contributor

prjemian commented Apr 24, 2024

One of the breaking changes with Python 3.13 is dropping xdrlib from the Standard Python Library, per PEP 594.

@prjemian
Copy link
Contributor Author

At least this file is affected:

#try:
# import f_xdrlib as xdr
# have_fast_xdr = True
#except:
# import xdrlib as xdr
import xdrlib as xdr

@prjemian
Copy link
Contributor Author

Pay attention to commit f49b4b9. Its commit messages states:

Don't use f_xdrlib. It doesn't work for large numbers of data points.

@timmmooney : Do you know what it takes to fix f_xdrlib.py?

@prjemian
Copy link
Contributor Author

@prjemian
Copy link
Contributor Author

Alternative is xdrlib3

A forked version of xdrlib, a module for encoding and decoding XDR (External Data Representation) data in Python. xdrlib is planned to be removed in Python 3.13 and later versions, therefore this fork has been created to add type hints and maintain compatibility with future versions of Python.

@prjemian
Copy link
Contributor Author

Conda and PyPI package alternatives for xdrlib:

There may be others. But only one in conda-forge.

(test) prjemian@arf:~/.../BCDA-APS/mdaviz$ conda search xdrlib
Loading channels: done
No match found for: xdrlib. Search: *xdrlib*
# Name                       Version           Build  Channel             
mda-xdrlib                     0.2.0    pyhd8ed1ab_0  conda-forge         

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

1 participant