X-Received: by 10.224.72.199 with SMTP id n7mr27236797qaj.5.1362667489510; Thu, 07 Mar 2013 06:44:49 -0800 (PST) X-Received: by 10.49.48.71 with SMTP id j7mr3342216qen.25.1362667489436; Thu, 07 Mar 2013 06:44:49 -0800 (PST) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!dd2no8003779qab.0!news-out.google.com!p7ni382qai.0!nntp.google.com!dd2no8003777qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.python Date: Thu, 7 Mar 2013 06:44:49 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.107.188; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 NNTP-Posting-Host: 94.68.107.188 References: <8e17232e-5b24-4040-9215-c4bd89f34fa2@googlegroups.com> <7bfe7117-d39d-48dc-9a6f-3d57484610a8@googlegroups.com> <213cf076-4163-44fd-a8b6-b25970da1bfa@googlegroups.com> <8a2af358-542c-45d3-b334-b4cb8f7cb7cf@googlegroups.com> <7b413998-2a6f-41cb-9e6d-7ba5b006bad4@googlegroups.com> <12e70b6c-2dc6-4cb3-8731-a910a7621802@googlegroups.com> <667bb7bc-2d76-435c-a8f6-f92fb383bd20@googlegroups.com> <08b2cc58-b3ec-4f4e-bd0e-863a17e7569f@googlegroups.com> <4fea8c12-8f63-43b8-90cc-8bc57858c2ef@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8a39a8d9-4afa-4b35-b2ef-e4f21f5925de@googlegroups.com> Subject: Re: An error when i switched from python v2.6.6 => v3.2.3 From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= Cc: python-list@python.org Injection-Date: Thu, 07 Mar 2013 14:44:49 +0000 Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.python:40777 =D4=E7 =D0=DD=EC=F0=F4=E7, 7 =CC=E1=F1=F4=DF=EF=F5 2013 4:37:31 =EC.=EC. UT= C+2, =EF =F7=F1=DE=F3=F4=E7=F2 Chris Angelico =DD=E3=F1=E1=F8=E5: > On Fri, Mar 8, 2013 at 1:34 AM, =CD=DF=EA=EF=F2 =C3=EA=F133=EA wrote: >=20 > > os.system( 'python metrites.py > %s' ) % htmltemp >=20 > > >=20 > > : unsupported operand type(s) for %: 'int'= and 'str' >=20 >=20 >=20 > Simple parenthesis problem. Take a careful look at the line mentioned >=20 > in the exception traceback (which you didn't share with us, but >=20 > fortunately the error's pretty obvious) and see if you can find the >=20 > problem. > Hint: htmltemp is the str mentioned in the error. /home/nikos/public_html/cgi-bin/metrites.py in () 220 htmldata =3D f.read() 221 elif htmlpage.endswith('.py'): 222 os.system( 'python metrites.py > %s' ) % htmltemp 223 f =3D open( htmltemp ) 224 htmldata =3D f.read() os =3D , os.system =3D , htmltemp =3D '/home/nikos/www/data/private/htmltemp= ' : unsupported operand type(s) for %: 'int' and= 'str'=20 args =3D ("unsupported operand type(s) for %: 'int' and 'str'",)=20 message =3D "unsupported operand type(s) for %: 'int' and 'str'" =D4his is the complete traceback iam reading it and reading it all over but= i just dont *see* what it tries to tell me.