#10112 closed defect (fixed)
UnicodeDecodeError when trying to see Roadmap
Reported by: | Adrian Fritz | Owned by: | falkb |
---|---|---|---|
Priority: | normal | Component: | SimpleMultiProjectPlugin |
Severity: | normal | Keywords: | UnicodeDecodeError |
Cc: | thomasd | Trac Release: | 0.12 |
Description
When trying to see Roadmap got: "UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 6: ordinal "
Related to #10074
Attachments (0)
Change History (13)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Cc: | thomasd added; anonymous removed |
---|
Does this one help?:
-
./simplemultiproject/roadmap.py
167 167 168 168 def filter_stream(self, req, method, filename, stream, data): 169 169 if filename.startswith("roadmap"): 170 stream_roadmap = HTML( stream)170 stream_roadmap = HTML(to_unicode(stream)) 171 171 stream_milestones = HTML(stream_roadmap.select('//div[@class="roadmap"]/div[@class="milestones"]')) 172 172 173 173 milestones = self.__extract_milestones_array(stream_milestones.select('//div[@class="milestone"]/div/h2/a/em'))
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [11680]) fixed #10112: stream must be converted to unicode before processing in filter_stream(). Thanks to AdrianFritz for reporting.
comment:5 follow-up: 9 Changed 12 years ago by
falkb, I´m reopening the ticket, because, now needs one more related fix, shown below
File ".../SimpleMultiProject-0.0.3dev_11696-py2.6.egg/simplemultiproject/roadmap.py", line 178, in filter_stream
- stream_milestones = HTML(stream_roadmap.select('//div[@class="roadmap"]/div[@class="milestones"]')) + stream_milestones = HTML(to_unicode(stream_roadmap.select('//div[@class="roadmap"]/div[@class="milestones"]')))
comment:6 Changed 12 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:7 Changed 12 years ago by
Owner: | changed from Christopher Paredes to falkb |
---|---|
Status: | reopened → new |
comment:8 Changed 12 years ago by
Status: | new → assigned |
---|
comment:9 Changed 12 years ago by
Replying to AdrianFritz:
falkb, I´m reopening the ticket, because, now needs one more related fix, shown below
Hmm... strange. I thought I turn the stream already to_unicode() in line 177:
L177 stream_roadmap = HTML(to_unicode(stream)) L178 stream_milestones = HTML(stream_roadmap.select('//div[@class="roadmap"]/div[@class="milestones"]'))
I thought that is enough, isn't it?
comment:10 follow-up: 12 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I´m sorry because my noise. It´s working properly with latest plugin version. My mistake (I had one improper set-up).
comment:11 Changed 12 years ago by
(In [12060]) bugfix (refs #10112, refs #10365): now I also experienced that unicode decode error (with new Trac-1.0), fixed with patch of AdrianFritz. Thanks
comment:12 Changed 12 years ago by
Replying to AdrianFritz:
I´m sorry because my noise. It´s working properly with latest plugin version. My mistake (I had one improper set-up).
Adrian, do you remember what you've exactly done to fix the Roadmap page error for you? It has hit us again in this new ticket #10651
comment:13 Changed 12 years ago by
I`ll check it again (because I do not remember now) and tell you by the end of this week.
Plugin version 0.0.2. Tested with
Python Traceback
System Information: