LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   driconf 0.9.1 not working. (http://www.linuxquestions.org/questions/slackware-14/driconf-0-9-1-not-working-4175426302/)

Arcosanti 09-08-2012 08:27 PM

driconf 0.9.1 not working.
 
How does one go about getting driconf-0.9.1 to work? I installed it via slackbuilds and this is the error I get:

Traceback (most recent call last):
File "/usr/bin/driconf", line 24, in <module>
import driconf
File "/usr/lib/python2.6/site-packages/driconf.py", line 33, in <module>
import driconf_commonui
File "/usr/lib/python2.6/site-packages/driconf_commonui.py", line 45, in <module>
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.6/locale.py", line 513, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

Is there any alternative to using driconf?

audriusk 09-09-2012 12:43 PM

I'm guessing from Python version that this is Slackware 13.37, right? What does locale command show? And please use [CODE][/CODE] tags for program output, that'll make it easier to read.

Arcosanti 09-09-2012 06:44 PM

Quote:

I'm guessing from Python version that this is Slackware 13.37, right?
Yes. It's shown to the left of my posting what I am currently using. Although the kernel is a bit outdated though. Everything else shown is correct.

Code:

bash-4.1$ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE=C
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=

Personally I think it is easier to read without the code tags. You don't have to scroll the text to read it.

audriusk 09-10-2012 04:23 AM

Quote:

Originally Posted by Arcosanti (Post 4776387)
Yes. It's shown to the left of my posting what I am currently using. Although the kernel is a bit outdated though. Everything else shown is correct.

People often forget to update that info, also many have multiple machines with various versions of Slackware installed, so I thought I'd better ask to be 100% sure. :)

Quote:

Originally Posted by Arcosanti (Post 4776387)
Code:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory


Something's wrong with your locale settings, normally those error messages shouldn't be displayed. What's the output of the following commands:
Code:

grep '^[^#]' /etc/profile.d/lang.sh
ls /var/log/packages/glibc-*

Quote:

Originally Posted by Arcosanti (Post 4776387)
Personally I think it is easier to read without the code tags. You don't have to scroll the text to read it.

At least Python tracebacks look much better when displayed in monospace font. E.g. '' two single quote symbols look very similar to one " double quote symbol in variable space font, using monospace font they would take fixed amount of space and that would make them easier to distinguish.

Arcosanti 09-11-2012 03:54 AM

Code:

bash-4.1$ grep '^[^#]' /etc/profile.d/lang.sh
export LANG=en_US
export LC_COLLATE=C
bash-4.1$ ls /var/log/packages/glibc-*
/var/log/packages/glibc-2.13-i486-4
/var/log/packages/glibc-i18n-2.13-i486-4
/var/log/packages/glibc-profile-2.13-i486-4
/var/log/packages/glibc-solibs-2.13-i486-4
/var/log/packages/glibc-zoneinfo-2.13-noarch-4


audriusk 09-11-2012 01:18 PM

Not sure what else to say, everything seems to be fine, except those error messages. I tried searching the net and found a lot of (mostly distro specific) solutions, but given the variety of them and the fact that I've never encountered this myself, I'm hesitant to point at any of those. Maybe somebody else with more knowledge on the topic will provide more clues.


All times are GMT -5. The time now is 09:44 PM.