An error when i switched from python v2.6.6 => v3.2.3

Chris Angelico rosuav at gmail.com
Thu Mar 7 09:37:31 EST 2013


On Fri, Mar 8, 2013 at 1:34 AM, Νίκος Γκρ33κ <nikos.gr33k at gmail.com> wrote:
>         os.system( 'python metrites.py > %s' ) % htmltemp
>
> <type 'exceptions.TypeError'>: unsupported operand type(s) for %: 'int' and 'str'

Simple parenthesis problem. Take a careful look at the line mentioned
in the exception traceback (which you didn't share with us, but
fortunately the error's pretty obvious) and see if you can find the
problem.

Hint: htmltemp is the str mentioned in the error.

ChrisA



More information about the Python-list mailing list