-
Notifications
You must be signed in to change notification settings - Fork 13
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
libpython error when using "Python in q" functionality #35
Comments
Hey @erichards97 Thanks for raising this! We can look into what we can do to improve the experience of this. We have relied directly on find-libpython in the past (prior to 1.6.1) but we had seen issues with this not finding the correct shared object for the Python version that's being used in complex user environments and on Windows. There is an environment variable export PYKX_PYTHON_LIB_PATH= '/usr/lib/x86_64-linux-gnu/libpython3.10.so.1.0' I'll try to provide an update in the week or so once we have had a chance to look into options |
Hey @erichards97 Fundamentally I think we're a little stuck in the requirement for the split between how the search works but the following is a workaround which while manual for the moment I can look to include as part of a patch in the next couple of weeks The following mimics what I'm considering adding
Essentially adding an env-var to choose the use of find-libpython and then using this to set the |
Thanks for digging into this @cmccarthy1 . We've verified that |
Hi @cmccarthy1 - do you know if this functionality will be added in a future release? Many thanks |
Hey @erichards97, Yes, the intention is that we'll be adding something for this either in our 3.0 or 3.1 release so will have a fix for this before the end of the year. |
Describe the bug
When importing PyKx into a q session (i.e.
\l pykx.q
), a'libpython
error is returned. This can be fixed by symlinking libpython*.so (see below), but this shouldn't be necessary.To Reproduce
Dockerfile
Then
Then
--> Doesn't work with libpython error
To Fix
--> Does work
Expected behavior
PyKx should work without having to symlink libpython. The find-libpython Python package successfully returns the correct path, and is mentioned in your docs as a dependency. Perhaps this should be used?
If L5-12 from embedPy lives on in PyKx, that could explain the issue, as the "L" variable returns the incorrect path to libpython.
The text was updated successfully, but these errors were encountered: