Discussion:
[BitPim-devel] Bluetooth Implementation exception
Joe Pham
2005-09-01 03:24:32 UTC
Permalink
Simon, your BT changes cause the following exception. I did not look further into it.

-Joe Pham

An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_core.py", line 13266, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\guiwidgets.py", line 785, in OnRefresh
ports=comscan.comscan()+usbscan.usbscan()
File "c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\usbscan.py", line 46, in usbscan
usb.UpdateLists()
AttributeError: 'module' object has no attribute 'UpdateLists'

Variables by last 8 frames, innermost last

Frame OnEditSettings in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\gui.py at line 1317
self = <gui.MainWindow; proxy of C++ wxFrame instance at _28997601_p_wxFrame>
_ = <wx._core.CommandEvent; proxy of C++ wxCommandEvent instance at _a0f01200_p_wxCo

Frame ShowModal in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\guiwidgets.py at line 709
self = <guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _d0dee301_p_wxDialog

Frame ShowModal in C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_windows.py at line 685
args = (<guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _d0dee301_p_wxDialo
kwargs = Keys []
{}

Frame OnComBrowse in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\guiwidgets.py at line 507
p = 200
self = <guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _d0dee301_p_wxDialog
dlg = <guiwidgets.CommPortDialog; proxy of C++ wxDialog instance at _98b49102_p_wxDial
_ = <wx._core.CommandEvent; proxy of C++ wxCommandEvent instance at _04de1200_p_wxCo

Frame ShowModal in C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_windows.py at line 685
args = (<guiwidgets.CommPortDialog; proxy of C++ wxDialog instance at _98b49102_p_wxDia
kwargs = Keys []
{}

Frame <lambda> in C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_core.py at line 13266
event = <wx._core.PyEvent; proxy of C++ wxPyEvent instance at _58668602_p_wxPyEvent>

Frame OnRefresh in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\guiwidgets.py at line 785
self = <guiwidgets.CommPortDialog; proxy of C++ wxDialog instance at _98b49102_p_wxDial
_ = None

Frame usbscan in c:\Documents and Settings\dad\My Documents\cell_apps\bitpim\usbscan.py at line 46
iface = 1
res = []
args = ()
vend = 26113
kwargs = Keys []
{}
x = '1'
line = '04e8 6601 1'
prod = 1256




______________________________________________________________________
NetZero Is Giving Away $3,000 A Day!
Sign up for NetZero HiSpeed 3G with Instant On!
Visit http://www.netzero.com/3Gsweeps TODAY for your chance to win!
Simon C
2005-09-01 04:22:49 UTC
Permalink
Joe,

I cannot reproduce this, I will need some help figuring this one out. I
presume you are going into the port browser in the settings dialog and
hitting refresh?. Do you have any details on what steps causes this. Can you
same the output of the port browser so I can see what ports you have in the
system.
The error says that the module "usb" does not have the function
UpdateLists().
Looking at usbscan.py "usb" is imported from "native.usb". This module
certainly does have this function, so the error code is kind of odd.
The only thing I can think is that my change so badly corrupted the system
that python got hosed.

There were three changes that I made, if you have time could you try backing
each source file out (comscan.py, comdiagnose and com_lgvx8100.py) one at a
time to see which causes the problem. I suspect it is the change in
comscan.py.

thanks,

Simon
-----Original Message-----
Sent: Wednesday, August 31, 2005 8:25 PM
Subject: [BitPim-devel] Bluetooth Implementation exception
Simon, your BT changes cause the following exception. I did
not look further into it.
-Joe Pham
An unexpected exception has occurred.
Please see the help for details on what to do.
File
"C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_core.py"
, line 13266, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\guiwidgets.py", line 785, in OnRefresh
ports=comscan.comscan()+usbscan.usbscan()
File "c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\usbscan.py", line 46, in usbscan
usb.UpdateLists()
AttributeError: 'module' object has no attribute 'UpdateLists'
Variables by last 8 frames, innermost last
Frame OnEditSettings in c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\gui.py at line 1317
self = <gui.MainWindow; proxy of C++ wxFrame
instance at _28997601_p_wxFrame>
_ = <wx._core.CommandEvent; proxy of C++
wxCommandEvent instance at _a0f01200_p_wxCo
Frame ShowModal in c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\guiwidgets.py at line 709
self = <guiwidgets.ConfigDialog; proxy of C++
wxDialog instance at _d0dee301_p_wxDialog
Frame ShowModal in
C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_windows.p
y at line 685
args = (<guiwidgets.ConfigDialog; proxy of C++
wxDialog instance at _d0dee301_p_wxDialo
kwargs = Keys []
{}
Frame OnComBrowse in c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\guiwidgets.py at line 507
p = 200
self = <guiwidgets.ConfigDialog; proxy of C++
wxDialog instance at _d0dee301_p_wxDialog
dlg = <guiwidgets.CommPortDialog; proxy of C++
wxDialog instance at _98b49102_p_wxDial
_ = <wx._core.CommandEvent; proxy of C++
wxCommandEvent instance at _04de1200_p_wxCo
Frame ShowModal in
C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_windows.p
y at line 685
args = (<guiwidgets.CommPortDialog; proxy of C++
wxDialog instance at _98b49102_p_wxDia
kwargs = Keys []
{}
Frame <lambda> in
C:\Python23\Lib\site-packages\wx-2.6-msw-unicode\wx\_core.py
at line 13266
event = <wx._core.PyEvent; proxy of C++ wxPyEvent
instance at _58668602_p_wxPyEvent>
Frame OnRefresh in c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\guiwidgets.py at line 785
self = <guiwidgets.CommPortDialog; proxy of C++
wxDialog instance at _98b49102_p_wxDial
_ = None
Frame usbscan in c:\Documents and Settings\dad\My
Documents\cell_apps\bitpim\usbscan.py at line 46
iface = 1
res = []
args = ()
vend = 26113
kwargs = Keys []
{}
x = '1'
line = '04e8 6601 1'
prod = 1256
______________________________________________________________________
NetZero Is Giving Away $3,000 A Day!
Sign up for NetZero HiSpeed 3G with Instant On!
Visit http://www.netzero.com/3Gsweeps TODAY for your chance to win!
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
BitPim-devel mailing list
https://lists.sourceforge.net/lists/listinfo/bitpim-devel
Joe Pham
2005-09-03 01:05:06 UTC
Permalink
Post by Simon C
Do you have any details on what steps causes this.
I did Menu Edit->Settings->Com Port Browse. It was comscan that caused the exception. The list of my ports (w/o the changes) is attached.

-Joe Pham
Simon C
2005-09-03 18:50:16 UTC
Permalink
Joe,

I can't figure out why the comscan change causes a crash. So I am trying a
different approach.
The attached version uses the native windows CreateFile instead of the
commport to test a port for availability, this is a better solution for the
user as it can scan through invalid ports faster than using commport and is
closer to the original implementation.
The other two files (comdiagnose and com_lgvx8100) are same as I sent out
before.

I have also attached a fix for an exception on the 8100 that occurs when a
calender event with description too long is imported. (p_lgvx8100.p only)

Simon
-----Original Message-----
Sent: Friday, September 02, 2005 6:05 PM
Subject: RE: [BitPim-devel] Bluetooth Implementation exception
Post by Simon C
Do you have any details on what steps causes this.
I did Menu Edit->Settings->Com Port Browse. It was comscan
that caused the exception. The list of my ports (w/o the
changes) is attached.
-Joe Pham
Loading...