-
Notifications
You must be signed in to change notification settings - Fork 748
Import clr fails on Linux64/Mono #119
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
Comments
UCS2 or UCS4? |
Try the develop branch. |
@denfromufa UCS4 |
You could take a look at the travis CI build (which is also Ubuntu) One thing it could be is a problem with the version of Python you're using. There used to be issues depending on whether the python exe statically or dynamically linked the python shared object, but that (I thought) had been fixed in 9b2d6f2. Maybe the Py_ENABLE_SHARED config var isn't set correctly in your build of Python. You could try hacking setup.py (just grep for Py_ENABLED_SHARED) and build it with and without PYTHON_WITHOUT_ENABLE_SHARED defined. |
Setting I checked that
So it seems that the |
I experience the same problem. |
works for me too in develop branch on Ubuntu-14.04LTS
yay, works! master branch in virtualenv did not work even with patch. :frown: but not sure about develop in virtualenv or master with |
I'm still having this error on fedora 23 even after i did the steps given by @mikofski Mono, Version 4.0.5.0 |
@Alvarz is your python 2.7 and mono provided with fedora or installed/built from elsewhere? I'm downloading fedora 23 iso image to test your problem. |
Thanks for your answer, both was the provided by fedora but un any case our Again thanks El jue 28/04/2016, 12:24 a.m., denfromufa notifications@github.com
|
I am still having this error Linux Mint 17.2, Python 2.7, Mono 4.4.2 Tried recipe of @mikofski , didn't help: `
|
@maksimlinio use mono 4.2.4.4 and see discussion here: |
FYI, today I found out that Py_ENABLE_SHARED set incorrectly is a bug in Ubuntu/Debian linux distros, that was discussed here: Here is a patch that can be applied to setup.py to workaround this bug in Ubuntu/Debian packages for CPython: https://bitbucket.org/anthony_tuininga/cx_freeze/commits/6e933509e4528f24919708eee1a68683f8aa029b |
@tonyroberts @vmuriart @filmor I would like to resolve this issue before doing a release. This is breaking "import clr" on Ubuntu/Mint, Fedora. In cx_freeze the check for PYTHON_ENABLE_SHARED is completely disabled now, maybe we should do the same? I will try to get this tested now: |
* Update setup.py #119 * Update setup.py * Update setup.py * Update setup.py * Update .travis.yml no more python 2.6 - missing subprocess.check_output() * Small cleanup.
@rihardsk @maksimlinio @Alvarz @mikofski @oysols this is now fixed in the master branch, by inspecting the output of ldd for libpython. |
After this fix, when you try to run nPython:
libpython is not linked dynamically with my python installation, thus setup.py compiled with the PYTHON_WITHOUT_ENABLE_SHARED flag. If I remove this flag, I can execute nPython, but cannot import clr... |
@AlexCatarino like discussed in this issue both embedding and extending are now resolved by @vmuriart: |
Running
python -c 'import clr' 2>&1
givesI'm on a clean Ubuntu Wily64 system with some deps installed ontop:
Pythonnet seems to install fine. Installing from
develop
branch givesThe text was updated successfully, but these errors were encountered: