

However, I need the image to show up in the application. I tried to comment the above chunk out from the project, and the application works properly.
Aptana studio 3 switch to python3 code#
I used one PNG image in the project, the code is like follows: self.workflow = wx.Image("Work Flow.png", wx.BITMAP_TYPE_ANY).ConvertToBitmap() \.\src\msw\bitmap.cpp(802) in wxBitmap::CreateFromImage(): invalid image Wx._core.PyAssertionError: C++ assertion "image.Ok()" failed at. The error info I had is: Traceback (most recent call last):įile "Graphical_Interface.py", line 397, in įile "Graphical_Interface.py", line 136, in _init_įile "wx\_core.pyc", line 3369, in ConvertToBitmap


I've managed to catch the error information that flashes on the screen. I tried to run the application as an administrator, the same outcome I've had. I double clicked it, but there is a cmd window appears, and a python output windows flashes, then both of them disappeared. Then in cmd, I switched to the directory of the project and used following line to compile it: python py2exeTest.py py2exeĮverything goes well, it generates an application under dist directory, and the application name is Graphical_Interface.exe. Import numpy # numpy is imported to deal with missing. Within it, I used few packages which are numpy, scipy, csv, sys, xlwt, time, wxpython and operator.Īll the above packages are in 64-bit, and I am using python 2.7(64-bit version) in Aptana Studio 3(64-bit version) in Windows 7 Professional (64-bit version).Īt last, I'd like to compile my project to an application using following code, the file name is py2exeTest.py: from re import setup I am using Python 2.7 to build my application.
