Edgewall Software
Modify

Opened 13 years ago

Last modified 13 years ago

#696 new defect

"internal server error" when pylint is used

Reported by: Sergey Gerasimov <sergun@…> Owned by: hodgestar
Priority: major Milestone: 0.7
Component: General Version: dev
Keywords: Cc:
Operating System: BSD

Description

Bitten slave hangs up in "in-progress" state and produces "Internal server error" if I use pylint step.

OS: FreebBSD 8.0 Python: 2.6 Bitten: 0.7dev_r1004 TRAC: 0.12.2 pylint: 0.21.4

You can see "You must not use 8-bit bytestrings..." error in the TRAC log (below).

2011-07-14 15:32:37,568 Trac[main] DEBUG: Dispatching <Request "POST '/builds/26
7/steps/'">
2011-07-14 15:32:37,569 Trac[graphviz] INFO: version: 0.7.5dev - id: $Id$
2011-07-14 15:32:37,577 Trac[session] DEBUG: Retrieving session for ID 'bitten'
2011-07-14 15:32:37,588 Trac[main] DEBUG: Negotiated locale: None -> en_US
2011-07-14 15:32:37,871 Trac[svn_fs] DEBUG: Subversion bindings imported
2011-07-14 15:32:37,881 Trac[api] INFO: Synchronized '' repository in 0.30 secon
ds
2011-07-14 15:32:37,884 Trac[api] DEBUG: action controllers for ticket workflow:
 ['ConfigurableTicketWorkflow']
2011-07-14 15:32:39,243 Trac[master] DEBUG: Slave samara (build 267) completed s
tep 4 (pylint) with status success
2011-07-14 15:32:41,059 Trac[main] DEBUG: Dispatching <Request "POST '/builds/26
7/keepalive/'">
2011-07-14 15:32:41,068 Trac[session] DEBUG: Retrieving session for ID 'bitten'
2011-07-14 15:32:41,087 Trac[main] DEBUG: Negotiated locale: None -> en_US
2011-07-14 15:32:41,156 Trac[chrome] DEBUG: Prepare chrome data for request
2011-07-14 15:32:41,224 Trac[main] ERROR: Internal Server Error:
Traceback (most recent call last):
  File "build/bdist.freebsd-8.0-RELEASE-i386/egg/trac/web/main.py", line 511, in
 _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.freebsd-8.0-RELEASE-i386/egg/trac/web/main.py", line 237, in
 dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.6/site-packages/Bitten-0.7dev_r1004-py2.6.egg/bit
ten/master.py", line 133, in process_request
    return self._process_build_step(req, config, build)
  File "/usr/local/lib/python2.6/site-packages/Bitten-0.7dev_r1004-py2.6.egg/bit
ten/master.py", line 355, in _process_build_step
    report.insert(db=db)
  File "/usr/local/lib/python2.6/site-packages/Bitten-0.7dev_r1004-py2.6.egg/bit
ten/model.py", line 981, in insert
    in item.items()])
  File "build/bdist.freebsd-8.0-RELEASE-i386/egg/trac/db/util.py", line 85, in e
xecutemany
    return self.cursor.executemany(sql_escape_percent(sql), args)
  File "build/bdist.freebsd-8.0-RELEASE-i386/egg/trac/db/sqlite_backend.py", lin
e 62, in executemany
    args)
  File "build/bdist.freebsd-8.0-RELEASE-i386/egg/trac/db/sqlite_backend.py", lin
e 48, in _rollback_on_error
    return function(self, *args, **kwargs)
ProgrammingError: You must not use 8-bit bytestrings unless you use a text_facto
ry that can interpret 8-bit bytestrings (like text_factory = str). It is highly
recommended that you instead just switch your application to Unicode strings.
2011-07-14 15:32:41,486 Trac[svn_fs] DEBUG: Subversion bindings imported
2011-07-14 15:32:41,501 Trac[api] INFO: Synchronized '' repository in 0.43 seconds

Attachments (0)

Change History (1)

comment:1 Changed 13 years ago by hodgestar

  • Owner set to hodgestar

Is there any chance you could locate the pylint warning that is producing the error? I assume it will contain some non-ascii characters. If you post it here then I can attempt to construct a simple test case and commit a fix.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain hodgestar.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.