Hi!
I am trying to follow the example code available here -
How to get info on cell location.
Seeing the python code, I tried the following commands in the Python -> Options -> Interactive Console -
If I try the following, I don't get any output either (quite expected) :Code:>>> import location >>> mcc, mnc, lac, cellid = location.gsm_location() Traceback (most recent call last): File "<console>" line 1, in ? TypeError: unpack non-sequence
Does the location function call differ from country to country? I am definitely connected to the GSM network - I can make/receive calls! Or, am I missing some files/libraries that is causing the error?Code:>>> import location >>> print location.gsm_location() NONE
Thanks
PS : I am trying the example out in India, and my service provider is AirTel.

Reply With Quote



