[Buildbot-commits] [Buildbot] #827: ChangeSources may produce changes containing non-ascii bytestrings

Buildbot nobody at buildbot.net
Tue Aug 23 09:56:32 UTC 2011


#827: ChangeSources may produce changes containing non-ascii bytestrings
------------------------------+-----------------------
Reporter:  dustin             |       Owner:
    Type:  defect             |      Status:  reopened
Priority:  critical           |   Milestone:  0.8.5
 Version:  0.7.12             |  Resolution:
Keywords:  encoding database  |
------------------------------+-----------------------

Comment (by birbilakos):

 And here is the tail from twisted.log:

 {{{
 2011-08-23 12:32:35+0300 [-] P4 poll failed
         Traceback (most recent call last):
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 269, in errback
             self._startRunCallbacks(fail)
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
             self._runCallbacks()
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 328, in _runCallbacks
             self.result = callback(self.result, *args, **kw)
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 630, in gotResult
             _deferGenerator(g, deferred)
         --- <exception caught here> ---
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 605, in _deferGenerator
             result = g.next()
           File "/usr/local/lib/python2.6/site-
 packages/buildbot-0.8.4p2-py2.6.egg/buildbot/changes/p4poller.py", line
 186, in _poll
             wfd.getResult()
           File "/usr/local/lib/python2.6/site-
 packages/twisted/internet/defer.py", line 584, in getResult
             self.result.raiseException()
           File "/usr/local/lib/python2.6/site-
 packages/twisted/python/threadpool.py", line 210, in _worker
             result = context.call(ctx, function, *args, **kwargs)
           File "/usr/local/lib/python2.6/site-
 packages/twisted/python/context.py", line 59, in callWithContext
             return self.currentContext().callWithContext(ctx, func, *args,
 **kw)
           File "/usr/local/lib/python2.6/site-
 packages/twisted/python/context.py", line 37, in callWithContext
             return func(*args,**kw)
           File "/usr/local/lib/python2.6/site-
 packages/buildbot-0.8.4p2-py2.6.egg/buildbot/db/pool.py", line 114, in thd
             rv = callable(conn, *args, **kwargs)
           File "/usr/local/lib/python2.6/site-
 packages/buildbot-0.8.4p2-py2.6.egg/buildbot/db/changes.py", line 141, in
 thd
             project=project))
           File "/usr/local/lib/python2.6/site-
 packages/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py",
 line 1358, in execute
             params)
           File "/usr/local/lib/python2.6/site-
 packages/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py",
 line 1491, in _execute_clauseelement
             compiled_sql, distilled_params
           File "/usr/local/lib/python2.6/site-
 packages/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py",
 line 1599, in _execute_context
             context)
           File "/usr/local/lib/python2.6/site-
 packages/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py",
 line 1592, in _execute_context
             context)
           File "/usr/local/lib/python2.6/site-
 packages/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/default.py",
 line 325, in do_execute
             cursor.execute(statement, parameters)
         sqlalchemy.exc.ProgrammingError: (ProgrammingError) You must not
 use 8-bit bytestrings unless you use a text_factory that can interpret
 8-bit bytestrings (like text_factory = str). It is highly recommended that
 you instead just switch your application to Unicode strings. u'INSERT INTO
 changes (author, comments, is_dir, branch, revision, revlink,
 when_timestamp, category, repository, project) VALUES (?, ?, ?, ?, ?, ?,
 ?, ?, ?, ?)' ('ihu', 'Change 85902 by asd at asd.asdf.11 on 2011/08/11
 03:18:06\n\n\tbug 40295: \n\t1. Reason: When mousing down the update image
 button (not click), its icon name will be suffixed to "Down" such as
 "xxxDown.jpg", so the button seems to disappear. \n\t2. Fix: using
 setShowDown(false) when creating imageButton.\n\t \n\nJobs fixed
 ...\n\nbug40295 by asd at asdf.com *CLOSED-FIXED*\n\n\ASDF-GUI-P3-\x93Upgrade
 Icon\x94 disappears sometimes.\n\n', 0, 'asd/1.1', '85902', '',
 1313057886, None, '', '')
 }}}

-- 
Ticket URL: <http://trac.buildbot.net/ticket/827#comment:20>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation


More information about the Commits mailing list