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
I've had issues attempting to use an rtx-installed Python to install and run radian on Debian Bookworm. I've narrowed it down to the fact that radian manipulates LD_LIBRARY_PATH as part of its startup routine, specifically
This leads LD_LIBRARY_PATH to include /usr/lib/x86_64-linux-gnu (on my machine). If libpython3.11 is installed, then the call to os.execv leads to a different Python interpreter—the system's interpreter, which does not have radian installed—to be started. I've a minimal reproduction of the general issue below.
If I modify radian to not modify LD_LIBRARY_PATH, things seem fine.
The below is derived from pyenv/pyenv#2875.
I've had issues attempting to use an rtx-installed Python to install and run radian on Debian Bookworm. I've narrowed it down to the fact that radian manipulates LD_LIBRARY_PATH as part of its startup routine, specifically
radian/radian/app.py
Lines 112 to 114 in 89bc7a3
This leads LD_LIBRARY_PATH to include /usr/lib/x86_64-linux-gnu (on my machine). If libpython3.11 is installed, then the call to os.execv leads to a different Python interpreter—the system's interpreter, which does not have radian installed—to be started. I've a minimal reproduction of the general issue below.
If I modify radian to not modify LD_LIBRARY_PATH, things seem fine.
Do you have any ideas?
Take the two (scrappy) files below.
Then run
docker image build --tag=radian-reprex:latest . docker container run -it radian-reprex:latest bash
Inside of the container,
python
is Python 3.11.7 (installed by pyenv) andpython main.py
opens a second Python 3.11.7 interpreter, butleads Python 3.11.7 (installed by pyenv) to open a Python 3.11.2 interpreter. This is the system interpreter.
Note the following.
env PYTHON_CONFIGURE_OPTS="--enable-shared"
set.The text was updated successfully, but these errors were encountered: