Discussion:
[Bitpim-devel] ...Mac other error....
Steven Palm
2004-05-12 13:51:42 UTC
Permalink
Or I get this: (I may be going blind, but I can't determine what port
it's using here either, should I be able to?)

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

Traceback (most recent call last):
File "/usr/local/src/bitpim/bitpim/gui.py", line 152, in run
res=call()
File "/usr/local/src/bitpim/bitpim/gui.py", line 92, in __call__
return apply(self.method, self.args+args, d)
File "/usr/local/src/bitpim/bitpim/gui.py", line 1106, in getdata
results=self.getfundamentals()
File "/usr/local/src/bitpim/bitpim/gui.py", line 1100, in
getfundamentals
self.commphone.getfundamentals(results)
File "/usr/local/src/bitpim/bitpim/com_lgvx4400.py", line 89, in
getfundamentals

results['uniqueserial']=sha.new(self.getfilecontents("nvm/
$SYS.ESN")).hexdigest()
File "/usr/local/src/bitpim/bitpim/com_brew.py", line 221, in
getfilecontents
res=self.sendbrewcommand(req, p_brew.readfileresponse)
File "/usr/local/src/bitpim/bitpim/com_brew.py", line 300, in
sendbrewcommand
self.setmode(self.MODEBREW)
File "/usr/local/src/bitpim/bitpim/com_phone.py", line 100, in setmode
res=getattr(self, func)()
File "/usr/local/src/bitpim/bitpim/com_brew.py", line 262, in
_setmodebrew
self.sendbrewcommand(req, respc, callsetmode=False)
File "/usr/local/src/bitpim/bitpim/com_brew.py", line 348, in
sendbrewcommand
if data[0]=="Y" and data[2]!="\x00": # Y is 0x59 which is brew
command prefix
IndexError: string index out of range

Variables by last 8 frames, innermost last

Frame getdata in /usr/local/src/bitpim/bitpim/gui.py at line 1106
self = <WorkerThread(BitPim helper, started daemon)>
req = <guiwidgets.GetPhoneDialog instance; proxy of C++
wxDialog instance at _6f400e0_

Frame getfundamentals in /usr/local/src/bitpim/bitpim/gui.py at line
1100
self = <WorkerThread(BitPim helper, started daemon)>
results = {}

Frame getfundamentals in /usr/local/src/bitpim/bitpim/com_lgvx4400.py
at line 89
self = <com_lgvx6000.Phone instance at 0x8636fa8>
results = {}

Frame getfilecontents in /usr/local/src/bitpim/bitpim/com_brew.py at
line 221
self = <com_lgvx6000.Phone instance at 0x8636fa8>
req = <p_brew.readfilerequest object at 0x8633d90>
start = 1084369769.946929
file = 'nvm/$SYS.ESN'
data = <cStringIO.StringO object at 0x83855e0>
desc = 'Reading nvm/$SYS.ESN'

Frame sendbrewcommand in /usr/local/src/bitpim/bitpim/com_brew.py at
line 300
callsetmode = True
request = <p_brew.readfilerequest object at 0x8633d90>
self = <com_lgvx6000.Phone instance at 0x8636fa8>
responseclass = <class 'p_brew.readfileresponse'>

Frame setmode in /usr/local/src/bitpim/bitpim/com_phone.py at line 102
desiredmode = 'modebrew'
self = <com_lgvx6000.Phone instance at 0x8636fa8>
strmode = 'none'
strdesiredmode = 'brew'
func = '_setmodebrew'
v = 'writefile'

Frame _setmodebrew in /usr/local/src/bitpim/bitpim/com_brew.py at line
265
baud = 0
self = <com_lgvx6000.Phone instance at 0x8636fa8>
req = <p_brew.memoryconfigrequest object at 0x8633db0>
respc = <class 'p_brew.memoryconfigresponse'>

Frame sendbrewcommand in /usr/local/src/bitpim/bitpim/com_brew.py at
line 348
origdata = 'Y\x0c\xc4\xc1~'
d = 0
responseclass = <class 'p_brew.memoryconfigresponse'>
buffer = <prototypes.buffer instance at 0x8393f30>
request = <p_brew.memoryconfigrequest object at 0x8633db0>
callsetmode = False
firsttwo = 'Y\x0c'
crc = '\xc4\xc1'
data = 'Y\x0c'
self = <com_lgvx6000.Phone instance at 0x8636fa8>
Roger Binns
2004-05-12 18:21:37 UTC
Permalink
Post by Steven Palm
Or I get this: (I may be going blind, but I can't determine what port
it's using here either, should I be able to?)
Yes, it is in the Log pane.

For some reason your phone is misbehaving. The VX6000 diagnostics
interface should always be in diagnostics mode, and you shouldn't
have seen the usb error or this one.

Anyway the fix is to reboot your phone, but please don't do that
yet. Add this method to _usbdevicewrapper:

def inWaiting(self):
return 0

I think you will still end up with a USB exception if no data comes
back.

Roger

Loading...