Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'syntax': 0.04; 'error:': 0.07; 'problem?': 0.07; 'sql.': 0.07; 'exception,': 0.09; 'runs': 0.10; 'python': 0.11; "'%s'": 0.16; '36,': 0.16; 'corresponds': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'hits': 0.16; 'message- id:@mrabarnett.plus.com': 0.16; 'received:84.93': 0.16; 'received:84.93.230': 0.16; 'skip:" 100': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'module': 0.19; 'manual': 0.22; 'header:User- Agent:1': 0.23; 'error': 0.23; '"you': 0.24; 'server.': 0.24; 'script': 0.25; 'handling': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'raise': 0.29; 'nature': 0.30; 'file': 0.32; 'another': 0.32; 'says': 0.33; '(most': 0.33; 'received:84': 0.35; 'version': 0.36; '2.6': 0.36; 'subject:?': 0.36; 'server': 0.38; 'thank': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'skip:_ 30': 0.39; 'to:addr:python.org': 0.39; 'tell': 0.60; 'you.': 0.62; 'today': 0.64; 'subject:. ': 0.67; 'header:Reply- To:1': 0.67; 'reply-to:no real name:2**0': 0.71; 'reply- to:addr:python.org': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=HO4d4PRv c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=B68SgI_Jlq8A:10 a=QlRawrgRWRcA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=dgU_2xMAUrYA:10 a=NXsfvHnzAAAA:8 a=9ljd86bzAAAA:8 a=XVRPUVx3rzJGyB0Q5a4A:9 a=QEXdDO2ut3YA:10 a=98JWFixwcA4A:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Wed, 27 Mar 2013 00:41:19 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: python-list@python.org Subject: Re: MySQLdbd error. Perhpas it isn't installed? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1364344877 news.xs4all.nl 6852 [2001:888:2000:d::a6]:38456 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:41970 On 26/03/2013 21:24, Νίκος Γκρ33κ wrote: > Hello today i deiced to go form python 2.6 to python 3.2.3 > > although in 2.6 my script runs in the ht enewest python i ge this error: > > > Traceback (most recent call last): > File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-linux-x86_64.egg/MySQLdb/cursors.py", line 171, in execute > r = self._query(query) > File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-linux-x86_64.egg/MySQLdb/cursors.py", line 330, in _query > rowcount = self._do_query(q) > File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-linux-x86_64.egg/MySQLdb/cursors.py", line 294, in _do_query > db.query(q) > _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s' at line 1") > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "metrites.py", line 193, in > cur.execute( '''SELECT hits FROM counters WHERE url = %s''', (page,) ) > File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-linux-x86_64.egg/MySQLdb/cursors.py", line 184, in execute > self.errorhandler(self, exc, value) > File "/opt/python3/lib/python3.2/site-packages/MySQL_python-1.2.3-py3.2-linux-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler > raise errorclass(errorvalue) > _mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%s' at line 1") > > > > you can also see it at http://superhost.gr > > Any ideas what might be the problem? > > My webhost (hostgator.com) says that The MySQLdb module is already installed for python 3 on this server. > > Can you please tell me what's the nature of this error? > > Thank you. > The error's in the SQL.