Hopefully this is a simple issue.
I have created a simple setup.py script for compiling a py2exe of my
wx based application. This works ok and I get my desired "dist" and
"build" folders.
When launching the exe file I get the following error :
Traceback (most recent call last):
File "Launcher.py", line 6, in <module>
from Wx.Control import Controller
File "wx\__init__.pyc", line 14, in <module>
ImportError: No module named __version__
if I locate the wx\__version__.pyc and copy into the root of the
library.zip file, then this problem is avoided.
Also, with simpler wx based python scripts then this issue does not
occur. What type of python scripting could cause this type of issue. I
have included below the inital part of module "Control" if this helps.
""""""
execfile(r'c:\pyRfic.txt')
import wx
import wx.grid
from MfgComs import MfgData, MfgCom, MfgTools
from GuiData import GuiDataExport,GuiDataImport
from RfData import FieldExport, RegExport
from Wx.Gui import Top,Bot,Mfg,Rfic,Ctrl
from RfTools import Common
from RfTools import Freq
from RfTools import Mode
from Tools import Conversion
Sws = {}
class Controller(wx.Frame):
def __init__(self,Gui,Control):
....
....
....
"""""""
1) Does anyone have any idea why it is not finding this in the wx\
folder?
2) If I have to, does anyone know how I can add this module into the
compilation automatically ( i.e. from my setup script )? It is not
clear to me how you do this ( controlling the source and destination
of the module file )
If useful, I can provide the py2exe output
Many Thanks wxPython-users!