pep-location not set

Bug #250110 reported by Quicksilver_Johny
4
Affects Status Importance Assigned to Milestone
Hektor
Fix Committed
Medium
Mick Koch

Bug Description

HN7000S Modem, Pro Plan, Ubuntu 8.04.1, Linux Kernel 2.6.24-19, Python 2.5.2

I had a problem setting up yahit
I recieved the error message:

    qj@ubuntu:~/yahit/yahit/src$ ./main.py
    Traceback (most recent call last):
      File "./main.py", line 57, in <module>
        main()
      File "./main.py", line 40, in main
        main(opts)
      File "/home/qj/yahit/yahit/src/ui/cli/cli.py", line 9, in main
        usage = core.calculate_usage()
      File "/home/qj/yahit/yahit/src/core.py", line 97, in calculate_usage
        (new['rx'], new['tx']) = self.get_pep_bytes()
      File "/home/qj/yahit/yahit/src/core.py", line 151, in get_pep_bytes
        if not self.modem['pep-location']:
    KeyError: 'pep-location'

It appears that pep-location is not being assigned correctly.
The pertinant http://192.168.0.1/fs/scripts/cat_menu.js line reads

insDoc(aux2, gLnk("R", "PEP Summary", "/cgi/execAdvCom.bin?Command=71&PrintMsg=PEP Summary"))

and http://192.168.0.1/cgi/execAdvCom.bin?Command=71 looked fine to me. But, pep-location just didn't appear to be set.

I eventually manually edited lines 151-154 of core.py to:

            #if not self.modem['pep-location']:
            # raise Exception('pep-location missing')

            tmp = re.sub(' +', ' ', urlopen('http://192.168.0.1/cgi/execAdvCom.bin?Command=71').read())

It appears to be working now

    qj@ubuntu:~/yahit/yahit/src$ ./main.py -u cli -p pro
    Used: 0.0 bytes / Unused: 375.0 megabytes
    ==========
    Signal: 76
    TxCode: 8 (transmitter operational)
    RxCode: 5 (receiver operational)

Related branches

Revision history for this message
Mick Koch (kchmck) wrote :

That was a mistake I made in r117.
See if r145 fixes this.

Changed in yahit:
assignee: nobody → tritecode
Revision history for this message
Quicksilver_Johny (quicksilverjohny) wrote :

Hmm.
Yeah, when I redownloaded it worked fine.

Mick Koch (kchmck)
Changed in yahit:
status: New → Fix Committed
Mick Koch (kchmck)
Changed in yahit:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.