469,579 Members | 1,157 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

wxWindows from PythonCard

Hi!

I was wondering if anyone can give me any light in this...I've
written a PythonCard application and I'm trying to create a Windows
executable but when I run my setup I get a bunch of errors...
My setup looks like this:

from distutils.core import setup
import py2exe

setup(
console = ["CopyStaffSearch.py"] ,
data_files = [ (".",["StaffDirectorySearchHelp.txt",
"CopyStaffSearch.rsrc.py"])],
)

AND I AM GETTING THE FOLLOWING ERRORS WHEN I RUN IT...

C:\Documents and Settings\OFalco\Desktop\dist>CopyStaffSearch.exe
Traceback (most recent call last):
File "CopyStaffSearch.py", line 287, 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 'statictext

PLEASE HELPPPPPP!!!!! Thanks in advance....
Jul 18 '05 #1
1 1535
Oriana wrote:
Hi!

I was wondering if anyone can give me any light in this...I've
written a PythonCard application and I'm trying to create a Windows
executable but when I run my setup I get a bunch of errors...
My setup looks like this:

[...]


According to http://pythoncard.sourceforge.net/standalone.html under the
section Resolving Import Errors you need to import each component
individually (PITA). In the doc he's using McMillan Installer, but maybe
it's the same with py2exe. Anyway this is the sample he gives:
# imports required by mcmillan installer

from PythonCardPrototype.components import statictext, imagebutton, \
textfield, textarea, list, staticbox, checkbox, passwordfield, \
radiogroup, spinner, combobox, choice, htmlwindow, bitmapcanvas
Hope this helps
greg
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ron Stephens | last post: by
2 posts views Thread by Adrian Smith | last post: by
2 posts views Thread by PipedreamerGrey | last post: by
1 post views Thread by Varun Hiremath | last post: by
1 post views Thread by jlocc | last post: by
4 posts views Thread by Tequila | last post: by
8 posts views Thread by king kikapu | last post: by
8 posts views Thread by Kevin Walzer | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.