-
Notifications
You must be signed in to change notification settings - Fork 41
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
version `GLIBC_2.34' not found (required by /tmp/_MEIXfEv3a/liblzma.so.5) #230
Comments
@liujin1993 This shouldn't happen, since staticx doesn't use What version of staticx are you using? How are you invoking |
Same, but in my case I've copied all dependencies located at |
Solution is to use following code: def run_cmd(s):
subprocess.run(s.split(), env={})
run_cmd("awk --help") |
@FirowMD I believe your issue is related to PyInstaller and not Staticx, which does not modify the environment. See their docs where they suggest adjusting the environment for child processes: LD_LIBRARY_PATH / LIBPATH considerations |
Actually, @liujin1993 I think that is your issue also. Staticx doesn't mess with |
sure, I already solved it and pasted the solution above, which removes LD_LIBRARY_PATH using |
There's a prescribed method in their docs, but if you want to run your child process with a completely empty environment (no |
I build my python app in docker ubuntu:22.04, and run in a machine which is ubuntu16.
When executing "systemctl" in subprocess, the app report an error:
My python file is:
The text was updated successfully, but these errors were encountered: