View Single Post
Saturn's Avatar
Posts: 1,648 | Thanked: 2,122 times | Joined on Mar 2007 @ UNKLE's Never Never Land
#9
Originally Posted by CrckMc View Post
Code:
 $ /opt/locatefromcell/Locate_From_Cell 
262 3 4666 37920
262 3 4666 61000
en
Traceback (most recent call last):
  File "/opt/locatefromcell/locatefromcell.py", line 210, in doGetLocation
  File "/opt/locatefromcell/locatefromcell.py", line 276, in get_location_by_cell
  File "/usr/lib/python2.5/struct.py", line 87, in unpack
    return o.unpack(s)
struct.error: unpack requires a string argument of length 25
this is the output in xterm and yes i have a network connection.
The cell tower info you show don't follow the expected values (in specific the Local Area Code).
Maybe I need to add some padding for cases like this in the code but I don't know really what is needed yet.

Thanks for the fail case.