[New-bugs-announce] [issue24537] Py_Initialize unable to load the file system codec
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
nosy: Dana Christen
title: Py_Initialize unable to load the file system codec
versions: Python 3.4
Added file: http://bugs.python.org/file39838/python_api_hello.c
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce