Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193239 - media-sound/listen-0.5-r1 fails to start with Non-ASCII error
Summary: media-sound/listen-0.5-r1 fails to start with Non-ASCII error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: José Alberto Suárez López (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 20:01 UTC by A. Person
Modified: 2007-11-20 11:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description A. Person 2007-09-20 20:01:40 UTC
I have the same type of error described here when starting listen:

http://bugs.gentoo.org/show_bug.cgi?id=179078

but it is supposed to be fixed as of 0.5-r1.  I tried to use the attached "patch that takes account of utf-8 encoding" but I got:

* Failed Patch: listen-python2.5.diff!

Reproducible: Always

Steps to Reproduce:
1. listen
2.
3.

Actual Results:  
fails to start with Non-ASCII error

Expected Results:  
started listen
Comment 1 G. Gibson 2007-10-01 01:56:02 UTC
(In reply to comment #0)
> I have the same type of error described here when starting listen:
> 
> http://bugs.gentoo.org/show_bug.cgi?id=179078
> 
> but it is supposed to be fixed as of 0.5-r1.  I tried to use the attached
> "patch that takes account of utf-8 encoding" but I got:
> 
> * Failed Patch: listen-python2.5.diff!
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. listen
> 2.
> 3.
> 
> Actual Results:  
> fails to start with Non-ASCII error
> 
> Expected Results:  
> started listen
> 

I got it as well:

listen &

-produces-
 
(listen.py:4184): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-0.10/libgstjpeg2k.so': /usr/lib/gstreamer-0.10/libgstjpeg2k.so: undefined symbol: GST_UNLOCK
Traceback (most recent call last):
  File "/usr/lib/listen/listen.py", line 66, in <module>
    import utils, const, stock, config
  File "/usr/lib/listen/utils.py", line 33, in <module>
    import stock
  File "/usr/lib/listen/stock.py", line 78, in <module>
    import const
  File "/usr/lib/listen/const.py", line 116
SyntaxError: Non-ASCII character '\xc3' in file /usr/lib/listen/const.py on line 117, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

I manually fixed it in the .py scripts by adding:

# coding: utf8

as a second line in the files

there ya go, enjoy!

G.
Comment 2 Gian Luca Dalla Torre 2007-10-11 19:30:28 UTC
Confirmed. The Patch is not applied and patching manually solve the problem.
Shoud the ebuild be revised?
Comment 3 aphid 2007-10-31 17:59:01 UTC
(In reply to comment #2)
> Confirmed. The Patch is not applied and patching manually solve the problem.
> Shoud the ebuild be revised?

please revise, cannot get patch to apply
Comment 4 Kfir Ozer 2007-11-02 13:38:49 UTC
Thank you! manually adding coding: utf-8 to the source files solved it here too.
Comment 5 José Alberto Suárez López (RETIRED) gentoo-dev 2007-11-20 11:36:50 UTC
fixed in cvs
Test it please.

Thanks