Bug 541523 - LookupError: unknown encoding: CHARSET in LANG=fr_FR.UTF-8
Summary: LookupError: unknown encoding: CHARSET in LANG=fr_FR.UTF-8
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: yumex
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Lauridsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1d19b3f8
: 555247 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-26 07:58 UTC by WaRL
Modified: 2010-02-02 20:43 UTC (History)
15 users (show)

Fixed In Version: 2.9.6-3.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-02-02 20:43:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.79 KB, text/plain)
2009-11-26 07:58 UTC, WaRL
no flags Details
fr.po (20.64 KB, text/x-gettext-translation)
2010-01-16 05:19 UTC, dominique
no flags Details

Description WaRL 2009-11-26 07:58:31 UTC
abrt detected a crash.

Attached file: backtrace
cmdline: /usr/bin/python /usr/share/yumex/yumex.pyc -n 
component: yumex
executable: /usr/share/yumex/yumex.pyc
kernel: 2.6.31.5-127.fc12.x86_64
package: yumex-2.9.4-1.fc12
uuid: 1d19b3f8

Comment 1 WaRL 2009-11-26 07:58:34 UTC
Created attachment 373934 [details]
File: backtrace

Comment 2 Tim Lauridsen 2009-11-28 07:46:19 UTC
The problem is that there is no working mirror for the russianfedora-fixes-updates
 mirror, if you disable it, then every thing should work again.

Yumex should handle the error better.

Comment 3 Tim Lauridsen 2009-12-22 12:05:00 UTC
fixed upstream

Comment 4 Fedora Update System 2010-01-01 10:57:02 UTC
yumex-2.9.5-1.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/yumex-2.9.5-1.fc12

Comment 5 dominique 2010-01-01 11:50:47 UTC
HI...
Happy new year...
I update yumex to yumex-2.9.5-1.fc12, but that don't work...
I have this errors message in console:
[dominique@localhost ~]$ yumex
Using dummy translation wrappers
running
Traceback (most recent call last):
  File "/usr/share/yumex/yumex.py", line 49, in <module>
    app = YumexApplication(backend)
  File "/usr/lib/python2.6/site-packages/yumexgui/__init__.py", line 592, in __init__
    self.cfg = YumexOptions()
  File "/usr/lib/python2.6/site-packages/yumexbase/conf.py", line 62, in __init__
    self._optparser = OptionParser()
  File "/usr/lib64/python2.6/optparse.py", line 1185, in __init__
    self.set_usage(usage)
  File "/usr/lib64/python2.6/optparse.py", line 1260, in set_usage
    self.usage = _("%prog [options]")
  File "/usr/lib64/python2.6/gettext.py", line 568, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib64/python2.6/gettext.py", line 532, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__
    self._parse(fp)
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse
    tmsg = unicode(tmsg, self._charset)
LookupError: unknown encoding: CHARSET

I downgrade to previous version and yumex work...

Comment 6 dominique 2010-01-04 17:28:23 UTC
I test F13 rawhide and I have same problem with yumex-2.9.5-1.fc12...
Downgrade to yumex-2.9.4-1.fc13 and yumex work

Comment 7 Tim Lauridsen 2010-01-05 08:56:56 UTC
dominique:

it looks like a translation related issues.

What is you LANG (echo $LANG) ?

Could you try:

LANG=C yumex

Comment 8 dominique 2010-01-05 20:06:49 UTC
Hi...

[dominique@localhost ~]$ echo $LANG
fr_FR.UTF-8  

Launch yumex-2.9.4-1.fc13 with LANG=C yumex:
[dominique@localhost ~]$ LANG=C yumex
running                              
Current Settings                     
    autorefresh: True                
    branding_title: 'Yum Extender NextGen'
    color_install: 'darkgreen'            
    color_normal: 'black'                 
    color_obsolete: 'blue'                
    color_update: 'red'                   
    debug: False                          
    disable_repo_page: False              
    plugins: True                         
    proxy: ''                             
    recentdays: 14                        
    repo_exclude: ['debug', 'source']     
    win_height: 881                       
    win_sep: 300                          
    win_width: 1440                       
    yumdebuglevel: 2                      
/usr/lib/python2.6/site-packages/guihelpers/__init__.py:199: GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead                                                
  self.add_from_file(filename)                                                                                      
eth0 (r8169) is connected                                                                                           
/usr/lib/python2.6/site-packages/yumexgui/gui.py:179: DeprecationWarning: Use the new widget gtk.Tooltip            
  self.tooltip = gtk.Tooltips()                                                                                     
/usr/lib/python2.6/site-packages/yumexgui/gui.py:206: DeprecationWarning: Use the new widget gtk.Tooltip            
  self.tooltip.set_tip(button, tooltip)                                                                             
eth0 (r8169) is connected                                                                                           
Connected to an network                                                                                             
eth0 (r8169) is connected                                                                                           
Starting yum child process                               

Launch yumex-2.9.5-1.fc1 with LANG=C yumex
[dominique@localhost ~]$ LANG=C yumex                                                                               
running                                                                                                             
Current Settings                                                                                                    
    autorefresh: True                                                                                               
    branding_title: 'Yum Extender NextGen'                                                                          
    color_install: 'darkgreen'                                                                                      
    color_normal: 'black'                                                                                           
    color_obsolete: 'blue'                                                                                          
    color_update: 'red'                                                                                             
    debug: False                                                                                                    
    disable_repo_page: False                                                                                        
    history_limit: 15                                                                                               
    plugins: True                                                                                                   
    proxy: ''                                                                                                       
    recentdays: 14                                                                                                  
    repo_exclude: ['debug', 'source']                                                                               
    win_height: 881                                                                                                 
    win_sep: 300                                                                                                    
    win_width: 1440                                                                                                 
    yumdebuglevel: 2                                                                                                
/usr/lib/python2.6/site-packages/guihelpers/__init__.py:199: GtkWarning: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead                                                
  self.add_from_file(filename)                                                                                      
eth0 (r8169) is connected                                                                                           
/usr/lib/python2.6/site-packages/yumexgui/gui.py:178: DeprecationWarning: Use the new widget gtk.Tooltip            
  self.tooltip = gtk.Tooltips()                                                                                     
/usr/lib/python2.6/site-packages/yumexgui/gui.py:205: DeprecationWarning: Use the new widget gtk.Tooltip            
  self.tooltip.set_tip(button, tooltip)                                                                             
eth0 (r8169) is connected                                                                                           
Connected to an network                                                                                             
eth0 (r8169) is connected                                                                                           
Starting yum child process                       

Launch yumex-2.9.5-1.fc1 normally
[dominique@localhost ~]$ yumex                                                                                      
Using dummy translation wrappers                                                                                    
running                                                                                                             
Traceback (most recent call last):                                                                                  
  File "/usr/share/yumex/yumex.py", line 49, in <module>                                                            
    app = YumexApplication(backend)                                                                                 
  File "/usr/lib/python2.6/site-packages/yumexgui/__init__.py", line 592, in __init__                               
    self.cfg = YumexOptions()                                                                                       
  File "/usr/lib/python2.6/site-packages/yumexbase/conf.py", line 62, in __init__                                   
    self._optparser = OptionParser()                                                                                
  File "/usr/lib64/python2.6/optparse.py", line 1185, in __init__                                                   
    self.set_usage(usage)                                                                                           
  File "/usr/lib64/python2.6/optparse.py", line 1260, in set_usage                                                  
    self.usage = _("%prog [options]")                                                                               
  File "/usr/lib64/python2.6/gettext.py", line 568, in gettext                                                      
    return dgettext(_current_domain, message)                                                                       
  File "/usr/lib64/python2.6/gettext.py", line 532, in dgettext                                                     
    codeset=_localecodesets.get(domain))                                                                            
  File "/usr/lib64/python2.6/gettext.py", line 480, in translation                                                  
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))                                                   
  File "/usr/lib64/python2.6/gettext.py", line 180, in __init__                                                     
    self._parse(fp)                                                                                                 
  File "/usr/lib64/python2.6/gettext.py", line 339, in _parse                                                       
    tmsg = unicode(tmsg, self._charset)                                                                             
LookupError: unknown encoding: CHARSET

Comment 9 Tim Lauridsen 2010-01-06 14:55:36 UTC
OK, I can reproduce the error using:

LANG=fr_FR.UTF-8 yumex

I will see if i can fix it.

Comment 10 Tim Lauridsen 2010-01-06 15:19:44 UTC
There was an error in the fr.po translation file

fr.po: fr.po: warning: Charset "CHARSET" is not a portable encoding name.
                Message conversion to user's charset might not work.

It is fixed upstream and will be included in yumex-2.9.6

Comment 11 dominique 2010-01-06 20:09:34 UTC
OK...
I will stay for yumex-2.9.6 and I test it...

Comment 12 dominique 2010-01-08 06:06:18 UTC
Hi...
For test I made a new fr.po and with this new file yumex work fine:

msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-12-05 08:39+0100\n"
"PO-Revision-Date: 2010-01-08 06:56+0100\n"
"Last-Translator: dominique bribanick <chepioq>\n"
"Language-Team: LANGUAGE <LL>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"


If that help you...

Comment 13 Tim Lauridsen 2010-01-08 10:16:41 UTC
Thanks for testing

Comment 14 dominique 2010-01-11 20:11:14 UTC
Hi...
I download and install yumex-2.9.6-3.fc12.noarch.rpm from koji and that work...
You can close this bug...
Thank you
Dominique

Comment 15 Fedora Update System 2010-01-14 01:21:47 UTC
yumex-2.9.6-3.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update yumex'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0507

Comment 16 Tim Lauridsen 2010-01-14 13:51:10 UTC
*** Bug 555247 has been marked as a duplicate of this bug. ***

Comment 17 dominique 2010-01-16 05:18:50 UTC
Hi...
I made a fr.po for yumex, but I don't know where I send it...
I attach this file here, if you can add it in the next release...
Dominique

Comment 18 dominique 2010-01-16 05:19:54 UTC
Created attachment 384761 [details]
fr.po

fr.po for yumex

Comment 19 Tim Lauridsen 2010-01-16 10:47:13 UTC
Please use transiflex for translation updates

https://translate.fedoraproject.org/projects/yumex/nextgen/

Comment 20 dominique 2010-01-16 12:40:40 UTC
I go to https://translate.fedoraproject.org/projects/yumex/nextgen/ , but how can I submitted my translation?

Comment 21 Tim Lauridsen 2010-01-17 06:21:13 UTC
The yumex translation is a part of the Fedora Project, so you need to become a Fedora Contributer to submit translations.

Here is a guide to what need to be done.
http://docs.fedoraproject.org/translation-quick-start-guide/en_US/

Comment 22 Fedora Update System 2010-02-02 20:43:07 UTC
yumex-2.9.6-3.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.