Python 3.11.6 is failing on deployment

I get the error

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding directly right after

==> Using Python version 3.11.6 via environment variable PYTHON_VERSION
==> Docs on specifying a Python version: https://render.com/docs/python-version

Hi there,

Can you try manually clearing the build cache and redeploying?

Regards,
Mike


Render Support Engineer, MT (UTC-7)

Thank you. That worked.

Can you explain how the cache caused that problem?

Hi Noel,

Our engineering team recently rolled out newer default native environment versions – for Python it’s now v.3.11.6. In rare cases the build cache on a service needed to be cleared so the new logic worked as intended.

Just let us know if you run into any issues with this in the future, but you should be good to go now.

Regards,
Mike


Render Support Engineer, MT (UTC-7)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.