indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.47k stars 239 forks source link

init_fs_encoding on google/cloud-sdk:slim docker image #624

Open whinis opened 2 years ago

whinis commented 2 years ago

I have managed to get my fairly complicated python application to build even though it contains pandas and numpy. However I noticed that whenever I try and run it on google/cloud-sdk:slim docker image it fails. I traced it down to even hello world application failing without any error other than below

error instantiating embedded Python interpreter: during initializing Python main: init_fs_encoding: failed to get the Python codec of the filesystem encoding

Dockerfile.txt Here is a docker file that builds a helloworld application using python 3.8 on the manylinux build docker and then runs it inside google/cloud-sdk:slim as a minimal repeatable error. I have not tried other python versions yet or other build instances nor using musl as I cannot make standalones with numpy