-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Hi,
is it possible to build a static bin file from bb-dl ?
tryed this:
apt-get install python-setuptools python3-pip
pip3 install pyinstaller
cd bbb-dl-1.0.13/bbb_dl
pyinstaller main.py
Got a bin file in dist/main/
ls -lathr
-rwxr-xr-x 1 developer developer 4.5M Nov 2 08:52 main
file main
main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=04804d3c31218f938502cbed5cdd1af09d59a8f0, for GNU/Linux 2.6.32, stripped
But did not work, no usage output or error when run
$ ./main
tryed also:
cd bbb-dl-1.0.13 pyinstaller --distpath bbb_dl/ bbb_dl/main.py
$ ./main
[PYI-155687:ERROR] Failed to load Python shared library '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal/libpython3.11.so.1.0': dlopen: /home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal/libpython3.11.so.1.0: cannot open shared object file: No such file or directory
mkdir /home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal
cp ./bbb_dl/main/_internal/libpython3.11.so.1.0 build/main/_internal/
cd build/main
./main
$ ./main
Python path configuration:
PYTHONHOME = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal'
PYTHONPATH = (not set)
program name = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/main'
isolated = 1
environment = 0
user site = 0
safe_path = 1
import site = 0
is in build tree = 0
stdlib dir = ''
sys._base_executable = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/main'
sys.base_prefix = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal'
sys.base_exec_prefix = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal'
sys.platlibdir = 'lib'
sys.executable = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/main'
sys.prefix = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal'
sys.exec_prefix = '/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal'
sys.path = [
'/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal/base_library.zip',
'/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal/lib-dynload',
'/home/developer/Downloads/bbb-dl-1.0.13/build/main/_internal',
]
[PYI-157836:ERROR] Failed to start embedded python interpreter!
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f27878f9040 (most recent call first):
<no Python frame>
Metadata
Metadata
Assignees
Labels
No labels