-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can't run Python SDK on Linux #684
Comments
After some tracing using I suppose this is a library naming issue in the Linux build somewhere. Can you guys look into it? Thanks |
Hi @maximevince, thanks for submitting an issue. I think it actually belongs at http://gitlab.com/opentap/python, eventually it will be moved to github.com/opentap/python, probably, but anyway, maybe we can just discuss it here - OpenTAP also needs to load libdl. it sounds a bit strange that we were not able to load libdl. Maybe libdl.so is located a bit differently on Arch than on Ubuntu? I guess the problem is that we try to do this to load dlopen and dlsym. // ...
[DllImport("libdl.so")]
static extern IntPtr dlopen(string fileName, int flags);
[DllImport("libdl.so")]
static extern IntPtr dlsym(IntPtr handle, string symbol);
// ... In the future we are also going to test "libdl.so.2", maybe that helps. Can you locate the file libdl.so and libdl.so.2, if they exist on your harddrive, and then tell me the location of those? |
Hi @rmadsen-ks, I noticed the Python repo is on GitLab indeed, apologies.
ls -al /usr/lib/libdl\.*
-rw-r--r-- 1 root root 8 6 jun 11:45 /usr/lib/libdl.a
-rwxr-xr-x 1 root root 14360 6 jun 11:45 /usr/lib/libdl.so.2 So that's probably the issue indeed, which explains why when I created a symlink to The I guess moving to |
Just FYI: I could find a .NET/Mono project with a very similar issue: They have solved it like by splitting the loader code for Linux and using |
It seems pythonnet does the same thing now, so for us this will be fixed in the next version of the Python plugin https://github.com/pythonnet/pythonnet/blob/master/src/runtime/Native/LibDL.cs |
Awesome, thanks for the update! |
No problem. Let's call this resolved then. |
When trying to build the PluginExample on Arch Linux, with Python 3.8 installed:
Where I configured the TAP python path as follows:
And symlink the python library as follows:
Any idea what
assembly might be in an invalid format
is referring to? x86_64 vs i686 ? Something else?How to proceed?
The text was updated successfully, but these errors were encountered: