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'

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!border2.nntp.ams2.giganews.com!backlog4.nntp.ams3.giganews.com!backlog4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <2281570025@qq.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'encoding': 0.05; 'url:bitbucket': 0.05; 'subject:Python': 0.06; 'error:': 0.07; 'importerror:': 0.07; 'python3': 0.07; 'locale': 0.09; 'setup.py': 0.09; 'subject:module': 0.09; 'python': 0.11; 'thread': 0.14; 'abort': 0.16; 'to:name:python list': 0.16; 'module': 0.19; 'command': 0.22; 'error': 0.23; 'downloaded': 0.26; 'installed': 0.27; 'idea': 0.28; '[1]': 0.29; "skip:' 10": 0.31; 'fixing': 0.31; 'run': 0.32; 'subject:the': 0.34; 'ubuntu': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'unable': 0.39; 'skip:c 50': 0.60; 'subject:get': 0.81; 'from:addr:qq.com': 0.84; 'message- id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84; 'subject::': 0.85
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1422766289; bh=AMJK29dkWdqZX89QvNeY1VSycZW7B1BLTGPTXHNabIc=; h=X-QQ-FEAT:X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN: X-Originating-IP:X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date: X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer: X-QQ-SENDSIZE; b=Icgn+YMB1gmW35iBKIs3VO+qGzXTNgkAsbjHd506WWM6j4irDdMXcTru3d4TENyyW 8PaM5+UeLY1lHgKouplDi5LqugsmsbxpA1kzP9hnvtzMEWpu/bQ35rahse7Ah/E3bv RvUD40ElFNRly3CyGd+ewgCg5gA/rMczxF7eqeLM=
X-QQ-FEAT 99tz+vyk4aQ/lDuAsDr/xy5/9780+Rng1rFnb6Ko3pD2qLxQSDkWTCm4H9eDf 4UZY1HbxMcGarRF8Gql5l06/POAOW03fWl+vSd+9eitsNKaG+jHx6MssioO/oS5c6Q4217d TsiMmdg4aZRd+32H7cRaPvjjuitxXmDPqxayzGi/XJZ3pqDTXKTpfYLyE7jcRmpr5CaFjk6 M4qO7S+4NHqOsAeut0mRUlMAyUt4XgM0=
X-QQ-SSF 00000000000000F000000000000000T
X-HAS-ATTACH no
X-QQ-BUSINESS-ORIGIN 2
X-Originating-IP 182.242.110.69
X-QQ-STYLE
X-QQ-mid webmail618t1422766288t1731277
From "iMath" <2281570025@qq.com>
To "Python List" <python-list@python.org>
Subject cx_Freeze:Fatal Python error: Py_Initialize: Unable to get the locale encoding ImportError: No module named 'encodings'
Mime-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_54CDB0CF_09831520_492C90BA"
Content-Transfer-Encoding 8Bit
Date Sun, 1 Feb 2015 12:51:27 +0800
X-Priority 3
X-QQ-MIME TCMime 1.0 by Tencent
X-Mailer QQMail 2.x
X-QQ-Mailer QQMail 2.x
X-QQ-SENDSIZE 520
X-QQ-Bgrelay 1
X-Mailman-Approved-At Mon, 02 Feb 2015 09:19:39 +0100
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.18396.1422865180.18130.python-list@python.org> (permalink)
Lines 712
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1422865180 news.xs4all.nl 2964 [2001:888:2000:d::a6]:60054
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:85066
X-Original-Bytes 55298

Show key headers only | 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