Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3 Exceptions often constructed with non-iterable types

closed-fixed
nobody
None
7
2007-01-13
2006-11-30
Darren Bane
No

I just tried running aap on Python 2.5, and it no longer works.

The problem I'm seeing is a crash at the line "self.args = args" in the exception constructors in Error.py. The right-hand args is a scalar, which is "non-iterable", hence can't be assigned to a list like self.args.

Discussion

  • Darren Bane
    Darren Bane
    2006-11-30

    Logged In: YES
    user_id=555868
    Originator: YES

    Some details that I forgot:

    Mac OS X 10.4.8
    Python 2.5 installed using MacPorts
    aap 1.088

    and here's a log:

    baned% aap --version
    A-A-P recipe executive version 1.088; released 2006 Mar 01 08:26:43 GMT
    Aap: Internal Error
    Traceback (most recent call last):
    File "/usr/local/lib/aap/Exec-1.088/Main.py", line 76, in do_the_work
    Global.cmd_args = doargs(argv)
    File "/usr/local/lib/aap/Exec-1.088/DoArgs.py", line 369, in doargs
    o.func(opt, arg)
    File "/usr/local/lib/aap/Exec-1.088/Error.py", line 17, in __init__
    self.args = value
    TypeError: 'int' object is not iterable
    Aap: Traceback (most recent call last):
    File "/usr/local/lib/aap/Exec-1.088/Main.py", line 76, in do_the_work
    Global.cmd_args = doargs(argv)
    File "/usr/local/lib/aap/Exec-1.088/DoArgs.py", line 369, in doargs
    o.func(opt, arg)
    File "/usr/local/lib/aap/Exec-1.088/Error.py", line 17, in __init__
    self.args = value
    TypeError: 'int' object is not iterable

    baned%

     
  • Darren Bane
    Darren Bane
    2006-11-30

    • priority: 5 --> 7
     
  • Darren Bane
    Darren Bane
    2006-12-01

    Logged In: YES
    user_id=555868
    Originator: YES

    Patch #1606856 uploaded to fix this. There may be other problems with Python 2.5 that I haven't found yet.

     
  • Bram Moolenaar
    Bram Moolenaar
    2007-01-13

    • status: open --> closed-fixed