Python 3.13 by filmor · Pull Request #2454 · pythonnet/pythonnet
Repository navigation
Python 3.13 - #2454
Merged
filmor merged 12 commits into master from python3.13 Dec 13, 2024
Merged
Python 3.13 #2454 filmor merged 12 commits into master from python3.13
Conversation
filmor commented Sep 19, 2024 · edited Loading
Copy link Copy Markdown
Member
This is crashing right now.
- Investigate whether the generated type offsets are correct (investigated, but missed an error, see Python 3.13 #2454 (comment) )
- Decide how to deal with the removed
Getter for the thread state - Find out why it crashes :)
lostmsu commented Sep 19, 2024
Copy link Copy Markdown
Member
|
Enable tests for 3.13 in the same PR? |
5482dcb to
0f612b1
Compare
October 25, 2024 10:11 filmor mentioned this pull request Oct 30, 2024 Python.net crashes with Python 3.13 and 3.14 #2489 Closed
RobPasMue commented Dec 10, 2024
Copy link Copy Markdown
Contributor
|
@filmor @lostmsu - is there a plan for enabling support for 3.13? I see this PR has been stale for quite a while already. Just checking what's the status :) |
filmor commented Dec 11, 2024
Copy link Copy Markdown
Member
Author
|
All development is public. You can see here that the "simple" approach of adding new offsets (that I have indeed verified) fails. Debugging gave me additionally that it crashes in some very early dictionary access, but I don't really know how to go further. |
View reviewed changes
filmor force-pushed the python3.13 branch from
80f2d56 to
b1d38b3
Compare
December 11, 2024 17:04 filmor added 4 commits December 11, 2024 18:12
First attempt at Python 3.13
5cf2534
Add Python 3.13 to CI
2f3a0e7
Update project file
5a7b5be
Use PyThreadState_GetUnchecked on Python 3.13
f3face0
filmor
force-pushed
the
python3.13
branch
from
b1d38b3 to
f3face0
Compare
December 11, 2024 17:12
kunom commented Dec 12, 2024
Copy link Copy Markdown
|
According to
However, when I look at the value of the We seem to have one property too much, don't we? |
filmor commented Dec 12, 2024 · edited Loading
Copy link Copy Markdown
Member
Author
|
Aaah, got it, thanks @kunom ! The issue is that, unlike all other members, the new I might have to release a new version of /edit: Actually, fixing the generator requires more work that I don't think is worth the effort, seeing that we should remove the direct type offsets eventually. I will just lazy-fix this by dropping one of the fields, alignment does the rest. |
Workaround for geninterop failure to handle non-pointer fields
88d98f2
filmor
marked this pull request as ready for review
December 12, 2024 19:29
kunom commented Dec 12, 2024 · edited Loading
Copy link Copy Markdown
|
Not shure whether this still matters, but I was finally able to produce an offset listing of the full 3.13 struct
But as you correctly noted, due to alignment, only the |
filmor commented Dec 12, 2024
Copy link Copy Markdown
Member
Author
|
On my local machine, the embedding tests also pass for 3.13. I'll have to spend some more time tomorrow to get the CI going, but I'm quite confident that I can release a new version either tomorrow or this weekend. |
Bump clr-loader and dev dependencies
4bb673f
Raise maximum supported version
8283627
Xfail a test that only fails locally on my machine right now
1920b19
filmor
force-pushed
the
python3.13
branch
3 times, most recently
from
21f3ffa to
1920b19
Compare
December 13, 2024 07:59 filmor added 2 commits December 13, 2024 09:06
Skip embed tests on Python 3.13 for now
60a057f
Verified them locally, but there is an issue with the Github workflow image that can hopefully be resolved later by using a full venv instead of relying on the system environment.
Add changelog entry
8f0ccb7
filmor
added 2 commits
December 13, 2024 09:16
Workaround for setuptools bug #4759
7c87fec
Remove win-x86-py3.13 entirely for now
0ea8e6f
filmor
merged commit 4132a36
into
master
Dec 13, 2024
filmor
deleted the
python3.13
branch
December 13, 2024 08:26
lostmsu commented Dec 13, 2024 · edited Loading
Copy link Copy Markdown
Member
|
Not that I'm against 3.13 support, but this seems to fail multiple tests and should have been marked alpha, or manually released calling our NuGet monthly build for preview packages, IMHO. |
filmor commented Dec 13, 2024
Copy link Copy Markdown
Member
Author
|
It is not failing tests, our CI is just a bit rusty. I ran a many combinations locally and will follow up in the next week to reactivate the excluded platforms. |
maged-hanna commented Mar 3, 2025 · edited Loading
Copy link Copy Markdown
|
@filmor I'm receiving a 'Attempted to read or write protected memory' error in my C# code when interacting with Python 3.13. This suggests potential memory corruption. Could this error be due to incompatibility with Python 3.13, or is it a sign that 3.13 is not supported? |
Bot
mentioned this pull request Jan 16, 2026 Bump pythonnet from 3.0.3 to 3.0.5 mattemangia/Deep3DStudio#99 Closed dependabot
Bot
mentioned this pull request Nov 10, 2026 MINOR: [C#] Bump pythonnet from 3.0.4 to 3.2.1 sg-scale/arrow--apache-arrow-18.1.0#10 Open Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment