Repository navigation
Status/plan of pythonnet for Python 3.9 support #1262
Description
Activity
Python 3.9 is not supported, yet. I have opened #1264 to see whether the tests pass, but neither Travis nor Appveyor has Python 3.9 available at this time. Once that is the case, we'll look into it for master. If the changes required are trivial, I'll backport them to the 2.5 branch.
Ok, thanks for the update!
Travis and Appveyor have 3.9 now.
Reacted by Stefan Schukat, xhevahir, Dominic Davis-Foster, Curtis den Otter and NaturalBornCamperLooks like this can be closed. Looking forward for a new release of pythonnet with support for Python 3.9, thanks!
Reacted by Alejandro Carrau, Henrik Andersson, András Mózes and EliseiIs pythonnet available for 3.9.x now? If yes, does it support 3.9.5?
Officially not, see #1389 for example.
When can we expect an official release of pythonnet available for Python 3.9.0? None of the solutions provided is working on my Windows 10.
Hi @Sshankar7, Please try 2.5.2.0. I tried along with Python 3.9.5 and it's working.
Reacted by Henrik AnderssonIt's November 2021 and the pythonnet library still does not officially support 3.9 yet despite a commit in October that mentioned 3.10 compatibility... does this issue need to be reopened?
Reacted by Kirk Davis and FranzIt's November 2021 and the pythonnet library still does not officially support 3.9 yet despite a commit in October that mentioned 3.10 compatibility... does this issue need to be reopened?
Not yet. A pip install still errors out on Python 3.9.6.
This looks like it needs to be reopened because there is no 3.9 support on pypi.org.
In an unsecure workaround people are using it by downloading a wheel file from an .edu site:
https://stackoverflow.com/questions/67418533/how-to-fix-error-during-pythonnet-installationThere's now 3.0.0a1 package available with 3.9 support
There's now 3.0.0a1 package available with 3.9 support
Not really? Looking on pypi.org it's the same 2.5.2 from Feb 5, 2021 (https://pypi.org/project/pythonnet/). Is there some disconnect in how this package gets released?
@Richard944 https://pypi.org/project/pythonnet/#history
BTW, @filmor , there's no alpha for 3.10. Do we have anything blocking it?
There's now 3.0.0a1 package available with 3.9 support
Not really? Looking on pypi.org it's the same 2.5.2 from Feb 5, 2021 (https://pypi.org/project/pythonnet/). Is there some disconnect in how this package gets released?
You can install pre releases with
pip install --pre pythonnet
See https://pip.pypa.io/en/stable/cli/pip_install/#pre-release-versions
Reacted by Andreas Mueller@Richard944 https://pypi.org/project/pythonnet/#history
BTW, @filmor , there's no alpha for 3.10. Do we have anything blocking it?
"PRE-RELEASE" Thanks!
@Richard944 https://pypi.org/project/pythonnet/#history
BTW, @filmor , there's no alpha for 3.10. Do we have anything blocking it?
No, this is just a mistake in the metadata. I'll fix it tomorrow.
I'm finding that pythonnet 3.0.0a1 works and pythonnet 3.0.0a2 does not work. There must be some difference. I am running a 3.9.6 python virtual environment.
With both versions I see the dll in site-packages\pythonnet\runtime.
...venv_amd64_3.9.6\lib\site-packages\pythonnet_init_.py:44: in load
raise RuntimeError("Failed to initialize Python.Runtime.dll")
E RuntimeError: Failed to initialize Python.Runtime.dllI'm ok using 3.0.0a1 but I wanted to share what I saw.
I'm finding that pythonnet 3.0.0a1 works and pythonnet 3.0.0a2 does not work. There must be some difference. I am running a 3.9.6 python virtual environment.
With both versions I see the dll in site-packages\pythonnet\runtime.
...venv_amd64_3.9.6\lib\site-packages\pythonnet__init__.py:44: in load raise RuntimeError("Failed to initialize Python.Runtime.dll") E RuntimeError: Failed to initialize Python.Runtime.dll
I'm ok using 3.0.0a1 but I wanted to share what I saw.
@Richard944 I recommend opening a separate issue for this error.
The pre-release version can now also be installed via conda by executing
conda install -c conda-forge/label/pythonnet_dev -c conda-forge pythonnet
Reacted by VictorReacted by Andreas Mueller
What's the status/plan for support for Python 3.9? The migration of the conda-forge-recipes for Python 3.9 started recently and the pipelines for Python 3.9 failed: conda-forge/pythonnet-feedstock#6