[p4dti-discussion] Replicator Failed to Poll - 'ascii' codeccan't decode...
Scott Haskell
shaskell at GlobalLocate.com
Mon Nov 13 17:24:55 GMT 2006
Here you go, Nick. Thanks!
(P4DTI-891X) Error (<type 'exceptions.UnicodeDecodeError'>): 'ascii'
codec can't decode byte 0x93 in position 118: ordinal not in range(128)
(P4DTI-8523) Here's a full Python traceback:
Exception:
UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position
118: ordinal not in range(128) Traceback (innermost last):
File "/opt/p4dti/replicator.py", line 861, in carefully_poll_databases
self.poll_databases()
locals:
self: <replicator.replicator instance at 0xb7c79b6c>
File "/opt/p4dti/replicator.py", line 1220, in poll_databases
self.replicate_changelist_p4_to_dt(c)
locals:
p4_marker: 2585
c: {'Status': 'submitted', 'code': 'stat', 'Description': '-[BF]
Fixed the \x93limited-time-machine\x94 bug (i.e. the backwards
jump).\n', 'Client': 'p4v', 'User': 'ktan', 'Date': '2006/11/10
16:11:33', 'Change': '31634'}
changed_issues: <replicator.list_cursor instance at 0xb7c7458c>
self: <replicator.replicator instance at 0xb7c79b6c>
dt_marker: '2006-11-13 16:15:32'
changed_jobs: {}
/** EDITED OUT **/
File "/opt/p4dti/replicator.py", line 1268, in
replicate_changelist_p4_to_dt
description, status, user):
locals:
status: 'submitted'
description: '-[BF] Fixed the \x93limited-time-machine\x94 bug
(i.e. the backwards jump).'
changelist: {'Status': 'submitted', 'code': 'stat', 'Description':
'-[BF] Fixed the \x93limited-time-machine\x94 bug (i.e. the backwards
jump).\n', 'Client': 'p4v', 'User': 'ktan', 'Date': '2006/11/10
16:11:33', 'Change': '31634'}
client: 'p4v'
user: 19
date: '2006-11-10 16:11:33'
self: <replicator.replicator instance at 0xb7c79b6c>
change: 31634
File "/opt/p4dti/dt_bugzilla.py", line 925, in replicate_changelist
self.bugzilla.add_changelist(dt_changelist)
locals:
status: 'submitted'
dt_changelists: []
description: '-[BF] Fixed the \x93limited-time-machine\x94 bug
(i.e. the backwards jump).'
self: <dt_bugzilla.dt_bugzilla instance at 0xb7c79c4c>
change: 31634
client: 'p4v'
user: 19
date: '2006-11-10 16:11:33'
dt_changelist: {'description': '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).',
'changelist': 31634, 'client': 'p4v', 'flags': 1, 'user': 19, 'sid':
'perforce0', 'rid': 'replicator0', 'p4date': '2006-11-10 16:11:33'}
File "/opt/p4dti/bugzilla.py", line 1818, in add_changelist
self.insert_row_rid_sid('p4dti_changelists', dict)
locals:
self: <bugzilla.bugzilla instance at 0xb7c741cc>
dict: {'description': '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).',
'changelist': 31634, 'client': 'p4v', 'flags': 1, 'user': 19, 'sid':
'perforce0', 'rid': 'replicator0', 'p4date': '2006-11-10 16:11:33'}
File "/opt/p4dti/bugzilla.py", line 604, in insert_row_rid_sid
self.insert_row(table, dict)
locals:
table: 'p4dti_changelists'
self: <bugzilla.bugzilla instance at 0xb7c741cc>
dict: {'description': '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).',
'changelist': 31634, 'client': 'p4v', 'flags': 1, 'user': 19, 'sid':
'perforce0', 'rid': 'replicator0', 'p4date': '2006-11-10 16:11:33'}
File "/opt/p4dti/bugzilla.py", line 593, in insert_row
rows = self.execute(command)
locals:
self: <bugzilla.bugzilla instance at 0xb7c741cc>
value: "'2006-11-10 16:11:33'"
values: "'-[BF] Fixed the \x93limited-time-machine\x94 bug (i.e.
the backwards jump).', 31634, 'p4v', 1, 19, 'perforce0', 'replicator0',
'2006-11-10 16:11:33'"
key: 'p4date'
table: 'p4dti_changelists'
command: "insert p4dti_changelists ( description, changelist,
client, flags, user, sid, rid, p4date ) values ( '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).', 31634,
'p4v', 1, 19, 'perforce0', 'replicator0', '2006-11-10 16:11:33' );"
columns: 'description, changelist, client, flags, user, sid, rid,
p4date'
dict: {'description': '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).',
'changelist': 31634, 'client': 'p4v', 'flags': 1, 'user': 19, 'sid':
'perforce0', 'rid': 'replicator0', 'p4date': '2006-11-10 16:11:33'}
File "/opt/p4dti/bugzilla.py", line 102, in execute
self.cursor.execute(sql)
locals:
self: <bugzilla.bugzilla instance at 0xb7c741cc>
sql: "insert p4dti_changelists ( description, changelist, client,
flags, user, sid, rid, p4date ) values ( '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).', 31634,
'p4v', 1, 19, 'perforce0', 'replicator0', '2006-11-10 16:11:33' );"
File "/usr/local/lib/python2.5/site-packages/MySQLdb/cursors.py", line
146, in execute
query = query.encode(charset)
locals:
args: None
self: <MySQLdb.cursors.Cursor object at 0xb7c741ec>
charset: 'latin1'
db: <weakproxy at 0xb7c72a2c to Connection at 0x914a6cc>
query: "insert p4dti_changelists ( description, changelist,
client, flags, user, sid, rid, p4date ) values ( '-[BF] Fixed the
\x93limited-time-machine\x94 bug (i.e. the backwards jump).', 31634,
'p4v', 1, 19, 'perforce0', 'replicator0', '2006-11-10 16:11:33' );"
ListType: <type 'list'>
exc_info: <built-in function exc_info>
TupleType: <type 'tuple'>
-----Original Message-----
From: p4dti-discussion-bounces at ravenbrook.com
[mailto:p4dti-discussion-bounces at ravenbrook.com] On Behalf Of Nick
Barnes
Sent: Monday, November 13, 2006 5:10 AM
To: Perforce Defect Tracking Integration discussion
Subject: Re: [p4dti-discussion] Replicator Failed to Poll - 'ascii'
codeccan't decode...
At 2006-11-11 00:57:48+0000, "Scott Haskell" writes:
> Does anyone have any insight as to what may be going on here?
Can you provide any more of the backtrace? I'd like to update the P4DTI
to handle these character-set issues rather better than this.
Nick Barnes
P4DTI Project
Ravenbrook Limited
_______________________________________________
P4DTI-discussion mailing list
P4DTI-discussion at ravenbrook.com
http://mailman.ravenbrook.com/mailman/listinfo/p4dti-discussion
More information about the P4DTI-discussion
mailing list