I have a simple app uses gradio and env variables to make api requests. The app was deployed once but never builds again on koyeb but it builds everywhere else with any python version.
The build keeps failing due to
sys._base_executable = ‘/usr/bin/python’
sys.base_prefix = ‘/home/koyeb/.heroku/python’
sys.base_exec_prefix = ‘/home/koyeb/.heroku/python’
sys.platlibdir = ‘lib’
sys.executable = ‘/usr/bin/python’
sys.prefix = ‘/home/koyeb/.heroku/python’
sys.exec_prefix = ‘/home/koyeb/.heroku/python’
sys.path = [
‘/home/koyeb’,
‘/home/koyeb/.heroku/python/lib/python310.zip’,
‘/home/koyeb/.heroku/python/lib/python3.10’,
‘/home/koyeb/.heroku/python/lib/python3.10/lib-dynload’,
]
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 0x00007fcc61638000 (most recent call first):
Timer: Builder ran for 22.773771065s and ended at 2025-05-17T21:32:42Z
ERROR: failed to build: exit status 1
Build failed