Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'charset:iso-8859-7': 0.04; 'encoding': 0.05; 'assign': 0.07; 'error:': 0.07; 'to:addr:comp.lang.python': 0.09; 'try:': 0.09; 'cc:addr:python- list': 0.11; 'command.': 0.16; 'hits': 0.16; 'weird': 0.16; 'variable': 0.18; 'cc:addr:gmail.com': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'cc:2**1': 0.23; 'header:User-Agent:1': 0.23; 'suggested': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'statement': 0.30; 'received:209.85': 0.35; 'except': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'should': 0.36; 'received:209': 0.37; 'being': 0.38; 'subject:. ': 0.67; '\xcc\xe1\xf1\xf4\xdf\xef\xf5': 0.84; 'joel': 0.91; '2013': 0.98 X-Received: by 10.49.95.134 with SMTP id dk6mr1511305qeb.10.1364411629017; Wed, 27 Mar 2013 12:13:49 -0700 (PDT) Newsgroups: comp.lang.python Date: Wed, 27 Mar 2013 12:13:48 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=94.68.83.207; posting-account=DYJQ-woAAACEPH85Au2BhUVfFTfSfVa4 References: <9c01c631-77e8-4104-ae1f-5cccfaaea10d@googlegroups.com> <22f50ec2-7d20-47af-a793-5cf801b6a23e@googlegroups.com> <8ada8de4-1cb2-4fbb-ae4f-8c0d47c1cf40@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 94.68.83.207 MIME-Version: 1.0 Subject: Re: MySQLdbd error. Perhpas it isn't installed? From: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Cc: =?ISO-8859-7?B?zd/q7/Igw+rxMzPq?= , "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364411632 news.xs4all.nl 6848 [2001:888:2000:d::a6]:42757 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:42030 =D4=E7 =D4=E5=F4=DC=F1=F4=E7, 27 =CC=E1=F1=F4=DF=EF=F5 2013 9:06:27 =EC.=EC= . UTC+2, =EF =F7=F1=DE=F3=F4=E7=F2 Joel Goldstick =DD=E3=F1=E1=F8=E5: > You should print the sql statement to see what is being created.=A0 Creat= e the > > >sql, and assign it to a variable name.=A0 Print that.=A0 Then ex= ecute the command. Ok Joe, i just tried the followinf as you suggested to me: try: sql =3D '''SELECT hits FROM counters WHERE url =3D %s''' print( sql ) cur.execute( sql , (page,) ) data =3D cur.fetchone() except MySQLdb.ProgrammingError as e: print ( "Query Error: ", dir( sys.exc_info()[1] ) ) =3D=3D=3D=3D=3D=3D=3D=3D=3D please look at http://supethost.gr now, weird errors! encoding issues perha= ps?!