GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Python.net crashes with Python 3.13 and 3.14 · Issue #2489 · pythonnet/pythonnet

Python.net crashes with Python 3.13 and 3.14 #2489

New issue
Copy link
New issue
Copy link
Closed
Closed
Python.net crashes with Python 3.13 and 3.14#2489
Copy link

Description

@gusmanb
gusmanb
opened on Oct 22, 2024
Issue body actions

Environment

  • Pythonnet version: 3.0.4
  • Python version: 3.13 and 3.14 alpha
  • Operating System: Windows 11 64 bits
  • .NET Runtime: .net 8.0

Details

Trying to initialize pythonnet with Python 3.13 or higher crashes with MissingMethodException: Failed to load symbol _PyThreadState_UncheckedGet

void Initialize()
{
    Runtime.PythonDLL = "path_to_dll";
    PythonEngine.Initialize(); //crash
}
  • StackTrace:
 en Python.Runtime.Runtime.Delegates.get_Py_IsInitialized()
   en Python.Runtime.Runtime.Py_IsInitialized()
   en Python.Runtime.Runtime.<>c.<Initialize>b__32_0()
   en Python.Runtime.Runtime.TryUsingDll[T](Func`1 op)
   en Python.Runtime.Runtime.Initialize(Boolean initSigs)
   en Python.Runtime.PythonEngine.Initialize(IEnumerable`1 args, Boolean setSysArgv, Boolean initSigs)
   en Python.Runtime.PythonEngine.Initialize(Boolean setSysArgv, Boolean initSigs)
   en Python.Runtime.PythonEngine.Initialize()

Activity

  1. filmor commented on Oct 23, 2024

    @filmor
    filmor
    on Oct 23, 2024
    Member
    More actions

    Neither of those are supported, as documented.

    Reacted by Charles Zhang
  2. filmor
    closed this as completedon Oct 23, 2024
  3. gusmanb commented on Oct 23, 2024

    @gusmanb
    gusmanb
    on Oct 23, 2024
    Author
    More actions

    Neither of those are supported, as documented.

    Sorry but, where is it documented? I can't find it in the wiki.

    Also, are there any plans to support them?

    Reacted by Charles Zhang
  4. chaojian-zhang commented on Oct 30, 2024

    @chaojian-zhang
    chaojian-zhang
    on Oct 30, 2024
    More actions

    I found it - Per https://pythonnet.github.io/: "Python.NET is currently compatible and tested with Python releases 3.7 - 3.11"

    Reacted by Agustín Gimenez Bernad and Charles Zhang
  5. filmor
    reopened this on Oct 30, 2024
  6. filmor
    closed this as completedon Oct 30, 2024
  7. filmor commented on Oct 30, 2024

    @filmor
    filmor
    on Oct 30, 2024
    Member
    More actions

    Actually, 3.12 is supported, I have adjusted the homepage. The PR for 3.13 is #2454 but it's crashing on init right now.

    Reacted by Agustín Gimenez Bernad
  8. gusmanb commented on Oct 30, 2024

    @gusmanb
    gusmanb
    on Oct 30, 2024
    Author
    More actions

    Actually, 3.12 is supported, I have adjusted the homepage. The PR for 3.13 is #2454 but it's crashing on init right now.

    Thanks for the info.

  9. jpactor commented on Nov 15, 2025

    @jpactor
    jpactor
    on Nov 15, 2025
    More actions

    Now over one year later: is 3.14 supported yet?

  10. SciDaa commented on Dec 1, 2025

    @SciDaa
    SciDaa
    on Dec 1, 2025
    More actions

    Now over one year later: is 3.14 supported yet?

    Not yet. According to the meta info https://pypi.org/project/pythonnet/. Currently requires: Python <3.14, >=3.7.
    I try on 3.14, it either fail at import step or addReference step in different Win11 machines.
    3.13 works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.