pywb
pywb copied to clipboard
Question: Would it be possible to compile pywb into a binary?
(I'm on Mac btw)
I want to be able to run pywb, specifically wb-manager and wayback without needing Python installed. I'm no expert at this, but I tried pyinstaller --onefile /opt/homebrew/bin/wayback, which created a binary but when I ran ./wayback, it printed this:
Traceback (most recent call last):
File "wayback", line 8, in <module>
File "pywb/apps/cli.py", line 25, in wayback
File "pywb/apps/cli.py", line 98, in __init__
File "pywb/apps/cli.py", line 190, in load
File "pywb/apps/frontendapp.py", line 73, in __init__
File "pywb/warcserver/warcserver.py", line 48, in __init__
File "pywb/utils/loaders.py", line 98, in load_yaml_config
File "pywb/utils/loaders.py", line 90, in load
File "pywb/utils/loaders.py", line 201, in load
File "pywb/utils/loaders.py", line 319, in load
File "pywb/utils/loaders.py", line 278, in load
File "pkgutil.py", line 639, in get_data
File "PyInstaller/loader/pyimod02_importers.py", line 344, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/var/folders/g7/qjl0pvnd6jl4jhs88djrs6s40000gn/T/_MEIZ4uImv/pywb/default_config.yaml'
I would like a binary, but I know maybe it might not be possible.