Python bug during startup

Bug #517709 reported by Jordan Bradley on 2010-02-05
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Low
Ding Zhou

Bug Description

I added the lucid repo to my Lubuntu install that I'm playing around with. Starting ubuntu-tweak from the terminal gives the following error:

jordanwb@lubuntu-desktop:~$ ubuntu-tweak
Traceback (most recent call last):
  File "/usr/bin/ubuntu-tweak", line 26, in <module>
    from ubuntutweak.common.consts import DATA_DIR
  File "/usr/lib/pymodules/python2.6/ubuntutweak/common/consts.py", line 25, in <module>
    LANG = os.getenv('LANG').split('.')[0].lower().replace('_','-')
AttributeError: 'NoneType' object has no attribute 'split'

Upgrading python related packages does not fix the error. I do not have this problem on my laptop running Ubuntu, so it may be something Lubuntu specific.

Ding Zhou (tualatrix) wrote :

Maybe the Lubuntu doesn't set the LANG variable.

Try to set it before run Ubuntu Tweak

export LANG=en_US.UTF-8 ( or other)
ubuntu-tweak

Changed in ubuntu-tweak:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → TualatriX (tualatrix)
milestone: none → 0.5.2

Setting the LANG variable as suggested fixes the "problem".

Ding Zhou (tualatrix) on 2010-02-08
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix) on 2010-03-01
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers