From: Tim B. <tb...@bi...> - 2004-05-14 20:44:26
|
All my py2exe errors have gone away since upgrading from Pythoncard 0.7.2. to 0.7.3.1 and from wxPython 2.4.2.4 to 2.5.1.5. The app runs fine with no errors using python. However, the resulting .exe does not run properly. I built and ran it as a console exe, after putting an exception handler around the instantiation of the PythonCardApp, and here is what's going wrong: cannot import module 'button Traceback (most recent call last): File "BOAMessenger.py", line 383, in ? File "PythonCardPrototype\model.pyc", line 218, in __init__ File "PythonCardPrototype\res.pyc", line 48, in getResource File "PythonCardPrototype\res.pyc", line 86, in __init__ File "PythonCardPrototype\res.pyc", line 91, in __init__ File "PythonCardPrototype\res.pyc", line 91, in __init__ File "PythonCardPrototype\res.pyc", line 96, in __init__ File "PythonCardPrototype\res.pyc", line 130, in enforceSpec File "PythonCardPrototype\res.pyc", line 30, in loadComponentModule ImportError: cannot import module 'button It looks like there is a typo somewhere. I double checked my resource file, but the button component is: {'type':'Button', 'name':'btnSend', 'position':(5, 5), 'size':(40, -1), 'label':'Send', }, Looks fine to me. Has anyone seen this button import exception before? Thanks, Tim Black |