[issue24537] Py_Initialize unable to load the file system codec

Dana Christen report at bugs.python.org
Tue Jun 30 12:04:31 CEST 2015


New submission from Dana Christen:

I'm using the C API to embed the Python interpreter (see the attached example). Everything works fine until I try to run the resulting executable on a machine without a Python installation. In that case, the call to Py_Initialize fails with the following message:

Fatal Python error: Py_Initialize: unable to load the file system codec
ImportError: No module named 'encodings'

This was on Windows 7 64 bit, and the program was compiled using MS Visual Studio 2010 in x64 Release mode, using the official Python 3.4.3 64 bit release (v3.4.3:9b73f1c3e601).

----------
components: Extension Modules
files: python_api_hello.c
messages: 245984
nosy: Dana Christen
priority: normal
severity: normal
status: open
title: Py_Initialize unable to load the file system codec
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file39838/python_api_hello.c

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24537>
_______________________________________


More information about the Python-bugs-list mailing list