Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!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; 'subject:error': 0.03; 'subject:: [': 0.04; 'subject:file': 0.07; 'bytes,': 0.09; 'operand': 0.09; 'valueerror:': 0.09; 'python': 0.11; 'skip:" 70': 0.16; 'subject:] [': 0.16; 'typeerror:': 0.16; 'types,': 0.16; 'underlying': 0.16; 'exception': 0.16; 'aug': 0.22; 'header:User- Agent:1': 0.23; 'error': 0.23; 'query': 0.26; 'skip:" 40': 0.26; 'header:In-Reply-To:1': 0.27; 'file': 0.32; 'text': 0.33; 'url:python': 0.33; '(most': 0.33; 'call.': 0.33; 'convert': 0.35; 'data,': 0.36; 'two': 0.37; 'to:addr:python-list': 0.38; 'recent': 0.39; 'legally': 0.39; 'quote': 0.39; 'to:addr:python.org': 0.39; 'url:about': 0.61; 'therefore,': 0.64; 'between': 0.67; 'type(s)': 0.84; 'was:': 0.91 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 27 Aug 2013 14:59:39 +0100 From: ishish To: Subject: Re: [error] [client 178.59.111.223] (2)No such file or directory: exec of In-Reply-To: References: X-Sender: ishish@domhain.de User-Agent: RoundCube Webmail/0.7.1 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: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377613496 news.xs4all.nl 16012 [2001:888:2000:d::a6]:57303 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53068 > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Error in > sys.excepthook: > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] > ValueError: underlying buffer has been detached > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Original > exception was: > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] Traceback > (most recent call last): > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] File > "/home/nikos/public_html/cgi-bin/metrites.py", line 169, in > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] > cur.execute('''SELECT ID FROM counters WHERE url = %s''', page ) > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] File > > "/usr/local/bin/python/lib/python3.3/site-packages/pymysql/cursors.py", > line 108, in execute > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] query > = query % escaped_args > [Tue Aug 27 13:02:57 2013] [error] [client 110.202.175.189] > TypeError: unsupported operand type(s) for %: 'bytes' and 'str' I quote from a Python 3 Guide [http://python.about.com/od/python30/ss/30_strings_3.htm]: The two data types, str and bytes, are mutually exclusive. One cannot legally combine them into one call. With the distinction between text and data, therefore, comes the need to convert between them.