Python bug during startup

Bug #517709 reported by Jordan Bradley
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Tweak
Fix Released
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.

Revision history for this message
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
Revision history for this message
Jordan Bradley (jordan-w-bradley) wrote :

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

Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Confirmed → Fix Committed
Ding Zhou (tualatrix)
Changed in ubuntu-tweak:
status: Fix Committed → Fix Released
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.