• sbbl.mpy

    From Black Panther@21:1/186 to Gryphon on Mon Jan 1 21:02:26 2018
    Hi Gryphon,

    I was just trying to set up sbbl.mpy here, and when it runs, I get the following:

    PYTHON ERROR (sbbl.mpy)

    File "sbbl.mpy", line 510, in <module>
    File "sbbl.mpy", line 493, in main_menu
    File "sbbl.mpy", line 206, in short_list
    IndexError: list index out of range

    Press a key

    Not sure if it's something on my end, or what happened. As I also receive the 'syncdata' via Fidonet, I'll try using that message area, and see if it makes any difference.


    ---

    Black Panther
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS (RCS)
    The sparrows are flying again....

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Castle Rock BBS - telnet://castlerockbbs.com (21:1/186)
  • From Gryphon@21:1/120 to Black Panther on Mon Jan 1 22:28:20 2018
    On 01/01/18, Black Panther said the following...

    Hi Gryphon,

    I was just trying to set up sbbl.mpy here, and when it runs, I get the following:

    PYTHON ERROR (sbbl.mpy)

    File "sbbl.mpy", line 510, in <module>
    File "sbbl.mpy", line 493, in main_menu
    File "sbbl.mpy", line 206, in short_list
    IndexError: list index out of range

    Press a key

    Not sure if it's something on my end, or what happened. As I also
    receive the 'syncdata' via Fidonet, I'll try using that message area,
    and see if it makes any difference.

    Can you open your copy of sbbl.mpy and let me know what is on line 206?

    Quite likely it's going to be an issue where a list element didn't get initialized.

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)
  • From Black Panther@21:1/186 to Gryphon on Tue Jan 2 17:03:56 2018
    On 01/01/18, Gryphon said the following...

    PYTHON ERROR (sbbl.mpy)

    File "sbbl.mpy", line 510, in <module>
    File "sbbl.mpy", line 493, in main_menu
    File "sbbl.mpy", line 206, in short_list
    IndexError: list index out of range

    Press a key

    Can you open your copy of sbbl.mpy and let me know what is on line 206?

    bbs.writeln("|10 %-25s |13%-15s |14%4s |09%-22s" % (key,software[key],nodes[key],uus[1]))

    (Sorry, the line wrapped. There is a space between the two lines.)

    If it were an MPL, I could probably try to debug it on this end, but I
    haven't started teaching myself Python yet.


    ---

    Black Panther
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS (RCS)
    The sparrows are flying again....

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Castle Rock BBS - telnet://castlerockbbs.com (21:1/186)
  • From Black Panther@21:1/186 to Gryphon on Tue Jan 2 17:06:16 2018
    On 01/02/18, Black Panther said the following...

    Can you open your copy of sbbl.mpy and let me know what is on line 20

    Well, that didn't work... I'll try it with adding another pipe to each one in the line.

    bbs.writeln("||10 %-25s ||13%-15s ||14%4s ||09%-22s" % (key,software[key],nodes[key],uus[1]))

    Let's see if that helps, or makes more of a mess... :)


    ---

    Black Panther
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS (RCS)
    The sparrows are flying again....

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Castle Rock BBS - telnet://castlerockbbs.com (21:1/186)
  • From Gryphon@21:1/120 to Black Panther on Tue Jan 2 18:58:42 2018
    On 01/02/18, Black Panther said the following...

    On 01/01/18, Gryphon said the following...

    PYTHON ERROR (sbbl.mpy)

    File "sbbl.mpy", line 510, in <module>
    File "sbbl.mpy", line 493, in main_menu
    File "sbbl.mpy", line 206, in short_list
    IndexError: list index out of range

    Press a key

    Can you open your copy of sbbl.mpy and let me know what is on line 20

    bbs.writeln(" %-25s %-15s %4s %-22s" % (key,software[key],nodes[key],uus[1]))

    (Sorry, the line wrapped. There is a space between the two lines.)

    If it were an MPL, I could probably try to debug it on this end, but I haven't started teaching myself Python yet.

    I think it's like I said. First of all, its data-related. There appears to
    be a missing or malformatted Telnet: statement in the record for this entry. Second, the mpy doesn't properly handle error conditions. The 'uus[1]' variable is likely the culpret. The script is forcing the use of element 1
    and there is no actual element 1. Therefore, it err's.

    Unfortunately, it doesn't fail in my setup, so I don't have an actual issue where I can test a fix. The best I can do is make an assumption and let you test it in production.

    Give me a bit and I'll have an update. I'll let you know when its ready.

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)
  • From Black Panther@21:1/186 to Gryphon on Tue Jan 2 21:52:20 2018
    On 01/02/18, Gryphon said the following...

    I think it's like I said. First of all, its data-related. There
    appears to be a missing or malformatted Telnet: statement in the record for this entry. Second, the mpy doesn't properly handle error
    conditions. The 'uus[1]' variable is likely the culpret. The script is forcing the use of element 1 and there is no actual element 1.
    Therefore, it err's.

    That makes sense.

    Unfortunately, it doesn't fail in my setup, so I don't have an actual issue where I can test a fix. The best I can do is make an assumption
    and let you test it in production.

    Would it help if I zipped up that JAM message base and emailed it to you?
    I'll also take a look in that echo, and see if one of them is listed incorrectly.

    Give me a bit and I'll have an update. I'll let you know when its ready.

    No problem. Thanks for looking into it. I was just playing around with some
    of the newer utilities that have come out. :)


    ---

    Black Panther
    a.k.a. Dan Richter
    Sysop - Castle Rock BBS (RCS)
    The sparrows are flying again....

    --- Mystic BBS v1.12 A38 2018/01/01 (Linux/64)
    * Origin: Castle Rock BBS - telnet://castlerockbbs.com (21:1/186)