Pyinstaller dependency with libreadline

25 views
Skip to first unread message

Nikhil Jain

unread,
Jul 18, 2023, 4:29:41 AM7/18/23
to PyInstaller
Hello all,

I have pyinstaller version 4.6. Is it true that this version of pyinstaller will always look for libreadline.so.6. If I package it with libreadline.so.8, will it work?

bwoodsend

unread,
Jul 20, 2023, 3:18:25 AM7/20/23
to PyInstaller

No, that’s not true. PyInstaller looks at your binary dependencies (Python extension modules, libpython.so, anything you’ve added via --add-binary), runs ldd on each file to see what other libraries they depend on and then packages those. If PyInstaller is collecting libreadline.so.6 then one of the files in your application depends on libreadline.so.6 (or possibly it depends on libreadline.so and libreadline.so is a symlink to libreadline.so.6).

Reply all
Reply to author
Forward
0 new messages