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
Sorry if I am just blind, but where is the Linux support?
I am trying now for hours to get it to work under ArchLinux. The standard python-3.7.3-embed-amd64.zip is compiled for Windows I guess and therefor not usable. In the release folders of python only source is available for Linux. Do I have to compile it myself and use it as EmbeddedResource?
Yes. I guess so. Or you install python via the native package management of your linux distri.
Sorry, I meant the deployment mechanism, If you look at the Python.Deployment project, there is code for starting commands using bash instead of CMD.exe
Ok I will try.
I want to have it embedded to be independent of installed packages in the system.
But now I got it to work with system-wide Python. With Python 3.8 and pythonnet_netstandard_py38_linux installed, there was the problem not finding the python3.8m lib. I searched for it and found, that in Python 3.8 the m-suffix was removed source. As you are also maintainer of the pythonnet_netstandard_py38_linux package, this may be interesting for you. Just remove the PYTHON_WITH_PYMALLOC constant during build of pythonnet and pythonnet searches for the correct binary.
I think also for Mac, but I don't know cause I don't own one.
The Windows Version searches for pythonXX.dll, so that should work. On Linux and Mac it is searched for pythonX.Xm. This is correct for Python <= 3.7.x, but not anymore for 3.8.
Activity
henon commentedon Jun 22, 2019
We need a volunteer who owns a Mac
CircuitCraft42 commentedon Nov 23, 2019
I think the biggest limitation would be the lack of a portable Python distribution for other systems (Linux might be doable, MacOS, probably not.
henon commentedon Sep 4, 2020
I think this can be closed? There is Linux support now, although I couldn't personally test it
axtimhaus commentedon Dec 7, 2020
Sorry if I am just blind, but where is the Linux support?
I am trying now for hours to get it to work under ArchLinux. The standard python-3.7.3-embed-amd64.zip is compiled for Windows I guess and therefor not usable. In the release folders of python only source is available for Linux. Do I have to compile it myself and use it as EmbeddedResource?
henon commentedon Dec 7, 2020
Yes. I guess so. Or you install python via the native package management of your linux distri.
Sorry, I meant the deployment mechanism, If you look at the Python.Deployment project, there is code for starting commands using bash instead of CMD.exe
axtimhaus commentedon Dec 8, 2020
Ok I will try.
I want to have it embedded to be independent of installed packages in the system.
But now I got it to work with system-wide Python. With Python 3.8 and pythonnet_netstandard_py38_linux installed, there was the problem not finding the python3.8m lib. I searched for it and found, that in Python 3.8 the m-suffix was removed source. As you are also maintainer of the pythonnet_netstandard_py38_linux package, this may be interesting for you. Just remove the PYTHON_WITH_PYMALLOC constant during build of pythonnet and pythonnet searches for the correct binary.
henon commentedon Dec 8, 2020
Remove PYTHON_WITH_PYMALLOC only for 3.8 linux?
axtimhaus commentedon Dec 8, 2020
I think also for Mac, but I don't know cause I don't own one.
The Windows Version searches for pythonXX.dll, so that should work. On Linux and Mac it is searched for pythonX.Xm. This is correct for Python <= 3.7.x, but not anymore for 3.8.
henon commentedon Jan 10, 2021
@axtimhaus I removed pymalloc from linux and mac versions of pythonnet for py3.8. check out the pythonnet nuget v2.5.1.1
henon commentedon Jan 14, 2021
according to #23 python 3.8 for linux is working now