LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2012, 07:39 AM   #1
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
system-config-language command throws error :ImportError: No module named snack


#system-config-language
Starting graphical mode failed. Starting text mode instead.
Traceback (most recent call last):
File "/usr/share/system-config-language/system-config-language.py", line 71, in <module>
useTextMode()
File "/usr/share/system-config-language/system-config-language.py", line 36, in useTextMode
import language_tui
File "/usr/share/system-config-language/language_tui.py", line
Quote:
20, in <module>
from snack import *
Quote:
ImportError: No module named snack

whether there is any possible way to modify language other than system-config-language command

Quote:
i tried out the following to change the default lang setting to russian ,inorder to make setting to active i make a reboot,But after reboot locale setting goes to default lang setting to english
Quote:
[root@localhost ~]# LANGUAGE=ru_RU LANG=ru_RU
Quote:
Before reboot
[root@localhost ~]# locale
LANG=ru_RU
LC_CTYPE="ru_RU"
LC_NUMERIC="ru_RU"
LC_TIME="ru_RU"
LC_COLLATE="ru_RU"
LC_MONETARY="ru_RU"
LC_MESSAGES="ru_RU"
LC_PAPER="ru_RU"
LC_NAME="ru_RU"
LC_ADDRESS="ru_RU"
LC_TELEPHONE="ru_RU"
LC_MEASUREMENT="ru_RU"
LC_IDENTIFICATION="ru_RU"
LC_ALL=
Quote:
After reboot it flushes back to default us language setting
Quote:
centos@localhost Desktop]$ locale
LANG=en_IN.utf8
LC_CTYPE="en_IN.utf8"
LC_NUMERIC="en_IN.utf8"
LC_TIME="en_IN.utf8"
LC_COLLATE="en_IN.utf8"
LC_MONETARY[="en_IN.utf8"
LC_MESSAGES="en_IN.utf8"
LC_PAPER="en_IN.utf8"
LC_NAME="en_IN.utf8"
LC_ADDRESS="en_IN.utf8"
LC_TELEPHONE="en_IN.utf8"
LC_MEASUREMENT="en_IN.utf8"
LC_IDENTIFICATION="en_IN.utf8"
LC_ALL=
[centos@localhost Desktop]$

Last edited by jsaravana87; 06-05-2012 at 11:13 AM.
 
Old 06-06-2012, 12:04 AM   #2
lonelyman
Member
 
Registered: May 2012
Location: Shanghai
Distribution: redhat,centos,fedora
Posts: 63
Blog Entries: 4

Rep: Reputation: Disabled
what's the errors when you start the graphical mode?i'm always doing this in graphical mode.
 
Old 06-06-2012, 02:14 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
ImportError: No module named snack
Probably reinstall the package 'newt', which provides snack.py

Did you change anything with the default python ? ( $ python --version )
 
Old 06-08-2012, 12:32 PM   #4
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558

Original Poster
Blog Entries: 5

Rep: Reputation: Disabled
I had Reinstalled newt package still same error .Any other alternatives way to alter my language setting in centos in commandline ..
 
Old 06-08-2012, 01:37 PM   #5
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558

Original Poster
Blog Entries: 5

Rep: Reputation: Disabled
Solved

Thanks all for ur reply


If system-config-language donīt help you, try this.



Go to the CentOS system configuration diretory

$ cd /etc/sysconfig


Make backup copy of your language setting file

$ cp i18n i18n.backup


Edit language setting file to allow english as default.You can edit the file by using nano or vim text editors available on all CentOS systems from SSH. I prefer vim, but nano is more easier:

$ nano i18n


Edit the file to include these lines as the first three lines of the file: $ LANG="en_US.UTF-8" $ SYSFONT="latarcyrheb-sun16" $ SUPPORTED="en_US.UTF-8:en_US:en"


Save the file and restart system. If you can not restart the system you need to have permission to restart init.d
If system-config-language donīt help you, try this.

Go to the CentOS system configuration diretory

$ cd /etc/sysconfig


Make backup copy of your language setting file

$ cp i18n i18n.backup


Edit language setting file to allow english as default.You can edit the file by using nano or vim text editors available on all CentOS systems from SSH. I prefer vim, but nano is more easier:

$ nano i18n


Edit the file to include these lines as the first three lines of the file: $ LANG="en_US.UTF-8" $ SYSFONT="latarcyrheb-sun16" $ SUPPORTED="en_US.UTF-8:en_US:en"


Save the file and restart system.

reboot the system
 
Old 06-11-2012, 01:24 AM   #6
lonelyman
Member
 
Registered: May 2012
Location: Shanghai
Distribution: redhat,centos,fedora
Posts: 63
Blog Entries: 4

Rep: Reputation: Disabled
good!thanks ur share!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ImportError: No module named cairo mattjohnstone22 Linux - Software 1 11-14-2007 05:12 AM
ImportError: No module named SimulationServer nageshbgl Linux - Newbie 1 09-26-2007 03:59 AM
HAL error, ImportError: No module named gnome davidguygc Slackware 10 07-22-2007 05:52 PM
iPodder: ImportError: No module named wx dr_zayus69 Linux - Software 6 07-06-2005 01:55 AM
ImportError: No module named libglade Kanaflloric Programming 0 08-16-2004 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration