Edgewall Software
Modify

Opened 18 years ago

Closed 15 years ago

#142 closed defect (duplicate)

UnicodeDecodeError during data transmission in beep.py

Reported by: Joshua Walsky <jwalsky@…> Owned by: cmlenz
Priority: minor Milestone:
Component: General Version: 0.5.3
Keywords: Cc:
Operating System: Windows

Description

Our build master was getting a Unicode Decode Error? while trying to send the build package tar file to the slave. The exception originated from line 754 of bitten/util/beep.py but was intermittent and occurred only about 20% of the time. I couldn't really determine a discenable pattern as to what would cause the exception.

I have attached a patch for beep.py which seems to have fixed this error and has been working for the past month or so in our environment. The patch is simple and performs explicit ascii encoding on the existing ret_buf data prior to concatenating with the data read from the file.

I originally saw the error under the following configuration:

  • Bitten 0.5.3
  • Windows 2003 Server
  • Subversion 1.4
  • TRAC 0.10
  • Python 2.4

I started seeing this error after upgrading to TRAC 0.10 (from 0.9), Python 2.4 (from 2.3) and Bitten 0.5.3 (from 0.5).

This seems to be the same error posted by Don Fike to the Source Forge discussion list.

http://sourceforge.net/mailarchive/message.php?msg_id=36928551 (not sure how long this link will work)

 >>
 >>File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 754, in read
 >>UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 10: 
 >>ordinal not in range(128)
 >>    
 >>
 >
 >Not sure, never got it in bitten, but I have been seeing it in my trac.
 >I'm guessing that it's some sort of utf encoding that doesn't sit well
 >with trac. I'm using 0.9.6 stable at the moment, and I'm hoping that
 >the release of 0.10.0 stable (any day now) will fix this issue.
 >
 >R
 >/L
 >

Attachments (1)

unicode.patch (527 bytes) - added by Joshua Walsky <jwalsky@…> 18 years ago.

Download all attachments as: .zip

Change History (2)

Changed 18 years ago by Joshua Walsky <jwalsky@…>

comment:1 Changed 15 years ago by osimons

  • Resolution set to duplicate
  • Status changed from new to closed

The beep.py file is gone in 0.6dev, but Unicode and encoding remains an issue. That is the topic of #119, so I'm closing this as a duplicate.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.