Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #85066

cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'

From "iMath" <2281570025@qq.com>
Subject cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'
Date 2015-02-01 12:51 +0800
Newsgroups comp.lang.python
Message-ID <mailman.18396.1422865180.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I downloaded cx_Freeze from here, installed it successfully on Ubuntu following this thread .

After run python3 setup.py build in cx_Freeze/samples/simple,then change the dir to cx_Freeze/samples/simple/build/exe.linux-i686-3.4,run the following command ,I got the error

➜  exe.linux-i686-3.4  ./hello

Fatal Python error: Py_Initialize: Unable to get the locale encoding

ImportError: No module named 'encodings'

[1]    3950 abort      ./hello

➜  exe.linux-i686-3.4  

any idea on fixing this issue ?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings' "iMath" <2281570025@qq.com> - 2015-02-01 12:51 +0800

csiph-web