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
Describe the problem
How to solve the following problems without setting the LD_PRELOAD parameter and How to set environment variables in Java's Jep.
jep.JepException: <class 'ImportError'>: /xxx/python/lib/python3.10/lib-dynload/_posixsubprocess.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyTuple_Type
Environment (please complete the following information):
OS Platform, Distribution, and Version:
Python Distribution and Version: 3.10
Java Distribution and Version: jdk11
Jep Version:4.1.1
Python packages used (e.g. numpy, pandas, tensorflow):numpy
The text was updated successfully, but these errors were encountered:
In some cases this can be solved by setting PYTHONHOME or using PyConfig.setPythonHome(). In some cases LD_PRELOAD may be required when other native python libraries depend on libpython but do not declare that dependency as part of their library. This is unfortunately a common way of building native python extensions so they can be used with a statically linked python executable. There is nothing jep can do to solve this since it is a problem with libraries that are not part of jep.
For example in the case of _posixsubprocess.cpython-310-x86_64-linux-gnu.so, it is looking for a symbol that is defined in libpython. If _posixsubprocess.cpython-310-x86_64-linux-gnu.so declares a dependency on libpython then the symbol would be available to it. Since the symbol is not available I can only assume it did not declare a dependency. You can check the dependencies on linux by running ldd /xxx/python/lib/python3.10/lib-dynload/_posixsubprocess.cpython-310-x86_64-linux-gnu.so The correct solution is for _posixsubprocess.cpython-310-x86_64-linux-gnu.so to declare a dependency on libpython.
Describe the problem
How to solve the following problems without setting the LD_PRELOAD parameter and How to set environment variables in Java's Jep.
jep.JepException: <class 'ImportError'>: /xxx/python/lib/python3.10/lib-dynload/_posixsubprocess.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyTuple_Type
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: