You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Status/plan of pythonnet for Python 3.9 support #1262
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
Reacted by Dominic Davis-Foster, WladimirW, retheon and Elisei
Reacted by WladimirW, Alejandro Carrau, NaturalBornCamper and András Mózes
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.
It'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?
It'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.
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?
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?
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.
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.
Activity
filmor commentedon Oct 14, 2020
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.
m-rossi commentedon Oct 14, 2020
Ok, thanks for the update!
passariello commentedon Oct 24, 2020
xhevahir commentedon Oct 29, 2020
Travis and Appveyor have 3.9 now.
m-rossi commentedon Nov 14, 2020
Looks like this can be closed. Looking forward for a new release of pythonnet with support for Python 3.9, thanks!
vipulpatel2103 commentedon May 11, 2021
Is pythonnet available for 3.9.x now? If yes, does it support 3.9.5?
m-rossi commentedon May 11, 2021
Officially not, see #1389 for example.
Sshankar7 commentedon May 30, 2021
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.
vipulpatel2103 commentedon Jun 1, 2021
Hi @Sshankar7, Please try 2.5.2.0. I tried along with Python 3.9.5 and it's working.
matthew1davis commentedon Nov 5, 2021
It'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?
dlc60 commentedon Nov 24, 2021
Not yet. A pip install still errors out on Python 3.9.6.
Richard944 commentedon Dec 9, 2021
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-installation
lostmsu commentedon Dec 9, 2021
There's now 3.0.0a1 package available with 3.9 support
Richard944 commentedon Dec 17, 2021
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?
lostmsu commentedon Dec 17, 2021
@Richard944 https://pypi.org/project/pythonnet/#history
BTW, @filmor , there's no alpha for 3.10. Do we have anything blocking it?
m-rossi commentedon Dec 17, 2021
You can install pre releases with
See https://pip.pypa.io/en/stable/cli/pip_install/#pre-release-versions
Richard944 commentedon Dec 17, 2021
"PRE-RELEASE" Thanks!
filmor commentedon Dec 17, 2021
No, this is just a mistake in the metadata. I'll fix it tomorrow.
Richard944 commentedon Jan 14, 2022
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.
m-rossi commentedon Jan 15, 2022
@Richard944 I recommend opening a separate issue for this error.
m-rossi commentedon Jan 15, 2022
The pre-release version can now also be installed via conda by executing