我用python写了好几个py文档,里面涉及了pyqt、numpy和matplotlib等
然后由于我想将其打包成一个exe让普通pc(没装py)都可以运行,然后就去查了很多资料,
找到了gui2exe这种工具(就是因为不知道如何将几个py文档打包成一个exe文件),按照要求安装了wxpython、py2exe。我使用的是64位的py27
最后运行gui2exe时,出现了这种问题
下面是里面详细:
#---- System Information ----#
GUI2Exe Version: 0.5.0
Operating System: Windows 7 (build 7601, Service Pack 1), 64-bit edition
Python Version: 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)]
wxPython Version: 3.0.2.0 msw (classic)
wxPython Info: (__WXMSW__, wxMSW, unicode, wx-assertions-on, SWIG-1.3.29)
Python Encoding: Default=mbcs File=mbcs
wxPython Encoding: utf-8
System Architecture: 64bit AMD64
Byte order: little
Frozen: False
#---- End System Information ----#
#---- Traceback Info ----#
*** 03 五月 2015 @ 16:59:53 ***
Traceback (most recent call last):
File "C:\Users\Tim\Desktop\GUI2Exe_0.5.0\GUI2Exe\GUI2Exe.py", line 4080, in <module>
app = GUI2ExeApp(0)
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8628, in __init__
self._BootstrapApp()
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_core.py", line 8196, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "C:\Users\Tim\Desktop\GUI2Exe_0.5.0\GUI2Exe\GUI2Exe.py", line 3963, in OnInit
splash = GUI2ExeSplashScreen(self)
File "C:\Users\Tim\Desktop\GUI2Exe_0.5.0\GUI2Exe\GUI2Exe.py", line 3840, in __init__
bmp = catalog["gui2exe_splash"].GetBitmap()
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\lib\embeddedimage.py", line 48, in GetBitmap
return wx.BitmapFromImage(self.GetImage())
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\lib\embeddedimage.py", line 63, in GetImage
return wx.ImageFromStream(stream)
File "C:\Python27\lib\site-packages\wx-3.0-msw\wx\_core.py", line 3721, in ImageFromStream
val = _core_.new_ImageFromStream(*args, **kwargs)
PyAssertionError: C++ assertion "strcmp(setlocale(LC_ALL, NULL), "C") == 0" failed at ..\..\src\common\intl.cpp(1449) in wxLocale::GetInfo(): You probably called setlocale() directly instead of using wxLocale and now there is a mismatch between C/C++ and Windows locale.
Things are going to break, please only change locale by creating wxLocale objects to avoid this!
#---- End Traceback Info ----#
实在搞不懂,求助求助