Ubuntu Software Center Turkish Locale problem

Bug #602561 reported by lipstick
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: software-center

I use Ubuntu 10.10 Alpha 2 with Turkish locale. When I start software-center, I got this error.

** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
/usr/share/software-center/softwarecenter/view/historypane.py:30: DeprecationWarning: please use 'debian' instead of 'debian_bundle'
  from debian_bundle import deb822
Traceback (most recent call last):
  File "/usr/bin/software-center", line 81, in <module>
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 54, in <module>
    from view.login import LoginDialog
  File "/usr/share/software-center/softwarecenter/view/login.py", line 29, in <module>
    from softwarecenter.backend.launchpad import GLaunchpad
  File "/usr/share/software-center/softwarecenter/backend/launchpad.py", line 32, in <module>
    from launchpadlib.launchpad import Launchpad
  File "/usr/lib/pymodules/python2.6/launchpadlib/launchpad.py", line 29, in <module>
    from lazr.restfulclient.resource import (
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 34, in <module>
    import simplejson
  File "/usr/lib/pymodules/python2.6/simplejson/__init__.py", line 109, in <module>
    from decimal import Decimal
  File "/usr/lib/python2.6/decimal.py", line 3646, in <module>
    val = globals()[globalname]
KeyError: 'ROUND_CEiLiNG'

Revision history for this message
Olivier Tilloy (osomon) wrote :

This looks like the issue described in comment #15 of bug #581207.

Revision history for this message
lipstick (sinanaykut-gmail) wrote : Re: [Bug 602561] Re: Ubuntu Software Center Turkish Locale problem

I digged a bit and it looks like the problem is on the python itself.

In our language, we have a unique letter " İ " which stands for uppercase
version of " i "
But in general, especially in english, the uppercase version of i is " I ".

This problem occurs nearly all python based applications such as moovida or
gwibber... I sent some bug reports and developers prefer to "work around"
this issue rather that fixing it.

2010/7/7 Olivier Tilloy <email address hidden>

> This looks like the issue described in comment #15 of bug #581207.
>
> --
> Ubuntu Software Center Turkish Locale problem
> https://bugs.launchpad.net/bugs/602561
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “software-center” package in Ubuntu: New
>
> Bug description:
> Binary package hint: software-center
>
> I use Ubuntu 10.10 Alpha 2 with Turkish locale. When I start
> software-center, I got this error.
>
> ** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
> ** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
> ** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
> /usr/share/software-center/softwarecenter/view/historypane.py:30:
> DeprecationWarning: please use 'debian' instead of 'debian_bundle'
> from debian_bundle import deb822
> Traceback (most recent call last):
> File "/usr/bin/software-center", line 81, in <module>
> from softwarecenter.app import SoftwareCenterApp
> File "/usr/share/software-center/softwarecenter/app.py", line 54, in
> <module>
> from view.login import LoginDialog
> File "/usr/share/software-center/softwarecenter/view/login.py", line 29,
> in <module>
> from softwarecenter.backend.launchpad import GLaunchpad
> File "/usr/share/software-center/softwarecenter/backend/launchpad.py",
> line 32, in <module>
> from launchpadlib.launchpad import Launchpad
> File "/usr/lib/pymodules/python2.6/launchpadlib/launchpad.py", line 29, in
> <module>
> from lazr.restfulclient.resource import (
> File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py",
> line 34, in <module>
> import simplejson
> File "/usr/lib/pymodules/python2.6/simplejson/__init__.py", line 109, in
> <module>
> from decimal import Decimal
> File "/usr/lib/python2.6/decimal.py", line 3646, in <module>
> val = globals()[globalname]
> KeyError: 'ROUND_CEiLiNG'
>
> To unsubscribe from this bug, go to:
>
> https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/602561/+subscribe
>

--
twitter.com/sinan_aykut

Revision history for this message
Olivier Tilloy (osomon) wrote :

Pasting my comment (#16) from bug #581207:

> This occurrence is a known issue in python itself. A cheap workaround is to
> explicitly `import decimal` before setting the locale, at startup, even
> though we don't need it directly.

The issue is in Python itself, and IIRC the investigation I carried out some time ago for the exact same issue in moovida, it's not likely to be fixed until Python 3, which is why developers have to live with it and work around it.

Revision history for this message
lipstick (sinanaykut-gmail) wrote : Invitation to view my posts on FriendFeed

(http://friendfeed.com/?ic=dFlF4oeHL6)

 Sinan Aykut (http://friendfeed.com/sinanaykut?ic%3DdFlF4oeHL6) invites you to try FriendFeed, where you can share and discover links, photos, videos and more!

 (https://friendfeed.com/account/create?ic=dFlF4oeHL6)

 You are receiving this email because Sinan Aykut sent an invitation to <email address hidden> from http://friendfeed.com/. Opt-out of invitation request emails: (http://friendfeed.com/account/optout?code=dFlF4oeHL6)

FriendFeed Inc., 313 W. Evelyn Ave., Mountain View, CA 94041

Revision history for this message
Kiwinote (kiwinote) wrote :

Hi lipstick! Thanks for your bug report. The bug you describe has already been reported by someone else, so I will mark this bug as a duplicate of the other one. Please continue to report any bugs you may find in software-center. Thanks again for your help!

Revision history for this message
lipstick (sinanaykut-gmail) wrote : LinkedIn'e bağlanma daveti

LinkedIn
------------

Bug,

Sizi LinkedIn'deki profesyonel profilime eklemek istiyorum.

- Sinan

Sinan Aykut
Şu okulda öğrenci: Afyon Kocatepe Üniversitesi
Türkiye

Sinan Aykut adlı kişiyi tanıdığınızı onaylayın
https://www.linkedin.com/e/-rjl3qw-gqm81ahn-1f/isd/3670130967/TIiUzAUy/

--
(c) 2011, LinkedIn Corporation

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.