PythonCard and Py2Exe

P

PipedreamerGrey

I'm trying to create a standalone version (.exe) of PythonCard's Custdb
sample using Py2Exe version 0.5.0. Everytime I attempt to compile the
program, I get an error during compilation. This is the exact code I'm
using in the setup file:


from distutils.core import setup
import py2exe
setup( name = "custdb",
console = ["custdb.py"],
data_files = [ (".", ["custdb.ini", "custdb.de.rsrc.py",
"custdb.rsrc.py", "customerdata.csv"]) ]
)


This is the error message I get when I run custdb.exe:


Traceback (most recent call last):
File "custdb.py", line 202, in ?
app = model.Application(CustDbStack)
File "PythonCard\model.pyc", line 337, in __init__
File "PythonCard\resource.pyc", line 48, in getResource
File "PythonCard\resource.pyc", line 86, in __init__
File "PythonCard\resource.pyc", line 91, in __init__
File "PythonCard\resource.pyc", line 91, in __init__
File "PythonCard\resource.pyc", line 96, in __init__
File "PythonCard\resource.pyc", line 139, in enforceSpec
File "PythonCard\resource.pyc", line 30, in loadComponentModule
ImportError: cannot import module 'radiogroup


When I add "radiogroup" to the imports at the top of custdb.py, I get
this error message:


Traceback (most recent call last):
File "custdb.py", line 18, in ?
ImportError: cannot import name radiogroup


This is line 18 in Custdb.py: from PythonCard import dialog, model,
radiogroup
 

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

PythonCard and Py2Exe 2
PythonCard and Py2Exe 0
Py2Exe Import Error 0
PythonCard and Py2Exe 8
PythonCard 4
PythonCard installation 1
wxWindows from PythonCard 1
SQLalchemy+py2exe+pymssql error 0

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top