I have now created the basics of my application that uses a USB HID card
reader peripheral via a vendor supplied OCX com control, and it runs
fine from both the IDE (WingIDE) and the command line. Gathers the data
and stores it cleanly. Much happiness there. :)
However, when I compile it with py2exe (in preparation for inclusion in
an installer) - I get the following error when I run the executable
version that is output:
#################### Trace back from .EXE version of my app [start]
Traceback (most recent call last):
File "App.py", line 47, in ?
File "App.py", line 43, in main
File "wx\_core.pyo", line 7473, in __init__
File "wx\_core.pyo", line 7125, in _BootstrapApp
File "App.py", line 37, in OnInit
File "frmCard.pyo", line 32, in create
File "frmCard.pyo", line 148, in __init__
File "win32com\client\__init__.pyo", line 258, in DispatchWithEvents
AttributeError: 'NoneType' object has no attribute 'CLSID'
#################### Trace back from .EXE version of my app [end]
#################### Line 148 of the frmCard.py file:
self.swiper = DispatchWithEvents('ctlUSBHID.USBHID', SwiperEvents)
I did a search for this error and only found one un-answered note about
this. The only thing I can think of is that since the line in the code
refers to the DispatchWithEvents call that creates the instance of the
OCX control, I need to somehow include the actual makepy output in my
setup or that my code needs to include it and use it directly instead of
the DispatchWithEvents ...I hope this is a simple one - I am very lost
on this, but so close to completion of my project.
I can include the setup.py and the frmCard.py if needed - but I have a
funny/gut feeling that this is an obvious one, and that it is staring me
in the face (and therefore some one will probably see it right off -
from just this much)
Garth Johnson
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32