Skip to content

Status/plan of pythonnet for Python 3.9 support #1262

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

Closed
m-rossi opened this issue Oct 13, 2020 · 21 comments
Closed

Status/plan of pythonnet for Python 3.9 support #1262

m-rossi opened this issue Oct 13, 2020 · 21 comments

Comments

@m-rossi
Copy link
Contributor

m-rossi commented Oct 13, 2020

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

@filmor
Copy link
Member

filmor commented 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
Copy link
Contributor Author

m-rossi commented Oct 14, 2020

Ok, thanks for the update!

@passariello

This comment has been minimized.

@xhevahir
Copy link

Travis and Appveyor have 3.9 now.

@m-rossi
Copy link
Contributor Author

m-rossi commented Nov 14, 2020

Looks like this can be closed. Looking forward for a new release of pythonnet with support for Python 3.9, thanks!

@m-rossi m-rossi closed this as completed Nov 14, 2020
@vipulpatel2103
Copy link

vipulpatel2103 commented May 11, 2021

Is pythonnet available for 3.9.x now? If yes, does it support 3.9.5?

@m-rossi
Copy link
Contributor Author

m-rossi commented May 11, 2021

Officially not, see #1389 for example.

@Sshankar7
Copy link

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
Copy link

Hi @Sshankar7, Please try 2.5.2.0. I tried along with Python 3.9.5 and it's working.

@matthew1davis
Copy link

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
Copy link

dlc60 commented Nov 24, 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?

Not yet. A pip install still errors out on Python 3.9.6.

@Richard944
Copy link

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
Copy link
Member

lostmsu commented Dec 9, 2021

There's now 3.0.0a1 package available with 3.9 support

@Richard944
Copy link

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?

@lostmsu
Copy link
Member

lostmsu commented 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
Copy link
Contributor Author

m-rossi commented Dec 17, 2021

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

@Richard944
Copy link

@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!

@filmor
Copy link
Member

filmor commented 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?

No, this is just a mistake in the metadata. I'll fix it tomorrow.

@Richard944
Copy link

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
Copy link
Contributor Author

m-rossi commented Jan 15, 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.

@Richard944 I recommend opening a separate issue for this error.

@m-rossi
Copy link
Contributor Author

m-rossi commented Jan 15, 2022

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

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

10 participants