#---- 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!
最后来更新一次吧,在我的setup.py文件里面添加了
import matplotlib和import dateutil
然后问题暂时解决,然后去看了看出错文档
出现Could not find the matplotlib data files
接着再谷歌,在文档发现
# Save matplotlib-data to mpl-data ( It is located in the matplotlib\mpl-data
# folder and the compiled programs will look for it in \mpl-data
# note: using matplotlib.get_mpldata_info
data_files = [(r'mpl-data', glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\*.*')),
# Because matplotlibrc does not have an extension, glob does not find it (at least I think that's why)
# So add it manually here:
(r'mpl-data', [r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc']),
(r'mpl-data\images',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\images\*.*')),
(r'mpl-data\fonts',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\fonts\*.*'))]
# for console program use 'console = [{"script" : "scriptname.py"}]
setup(windows=[{"script" : "scriptname.py"}], options=opts, data_files=data_files)
最后来更新一次吧,在我的setup.py文件里面添加了
import matplotlib和import dateutil
然后问题暂时解决,然后去看了看出错文档
出现Could not find the matplotlib data files
接着再谷歌,在文档发现
# Save matplotlib-data to mpl-data ( It is located in the matplotlib\mpl-data
# folder and the compiled programs will look for it in \mpl-data
# note: using matplotlib.get_mpldata_info
data_files = [(r'mpl-data', glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\*.*')),
# Because matplotlibrc does not have an extension, glob does not find it (at least I think that's why)
# So add it manually here:
(r'mpl-data', [r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\matplotlibrc']),
(r'mpl-data\images',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\images\*.*')),
(r'mpl-data\fonts',glob.glob(r'C:\Python25\Lib\site-packages\matplotlib\mpl-data\fonts\*.*'))]
# for console program use 'console = [{"script" : "scriptname.py"}]
setup(windows=[{"script" : "scriptname.py"}], options=opts, data_files=data_files)