wxWindows from PythonCard

O

Oriana

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....
 
G

Greg Krohn

Oriana said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top