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

Compatibility with Python 3.13 #729

Open
commongeek opened this issue Oct 13, 2024 · 1 comment
Open

Compatibility with Python 3.13 #729

commongeek opened this issue Oct 13, 2024 · 1 comment

Comments

@commongeek
Copy link

I use PonyPRM with Python 3.12 on Windows without problem. However after upgrading to 3.13 I got the following error:

File "C:\Users\Administrator\Python313\Lib\site-packages\pony\orm\core.py", line 3578, in select
query = reverse.entity._select_all()
File "C:\Users\Administrator\Python313\Lib\site-packages\pony\orm\core.py", line 4371, in _select_all
return Query(entity.default_iter_name, entity.default_genexpr, {}, { '.0' : entity })
File "C:\Users\Administrator\Python313\Lib\site-packages\pony\orm\core.py", line 5713, in init
pickled_tree = pickle_ast(tree)
File "C:\Users\Administrator\Python313\Lib\site-packages\pony\utils\utils.py", line 383, in pickle_ast
pickler.persistent_id = _persistent_id
^^^^^^^^^^^^^^^^^^^^^
AttributeError: '_pickle.Pickler' object attribute 'persistent_id' is read-only

@black-sliver
Copy link
Contributor

Since 3.13, that method is defined in C, which means we have to subclass the Pickler rather than assigning to the member.

I believe there are other, more complicated problems for py3.13 support tough. I plan to try and implement py3.13 support hopefully later this year if there is no update from the original devs.

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