babel.core.UnknownLocaleError: unknown locale 'ast'

Asked by nirinA raseliarison on 2012-11-18

hello there,
i try to build wicd-1.7.2.4 from the tarball but i get error when running:

python setup.py configure

Error importing wpath.py. You can safely ignore this
message. It is probably because you haven't run python setup.py
configure yet or you are running it for the first time.
Using init file name 'wpath' is not defined
Error setting up data array. This is normal if
python setup.py configure has not yet been run.
running configure
Distro is: auto
NOTICE: Automatic distro detection found: slackware, retrying with that...
Distro is: slackware
lib is /usr/lib/wicd/
share is /usr/share/wicd/
etc is /etc/wicd/
scripts is /etc/wicd/scripts/
pixmaps is /usr/share/pixmaps/
images is /usr/share/pixmaps/wicd/
encryption is /etc/wicd/encryption/templates/
bin is /usr/bin/
sbin is /usr/sbin/
backends is /usr/share/wicd/backends/
daemon is /usr/share/wicd/daemon/
curses is /usr/share/wicd/curses/
gtk is /usr/share/wicd/gtk/
cli is /usr/share/wicd/cli/
networks is /var/lib/wicd/configurations/
log is /var/log/wicd/
resume is /etc/acpi/resume.d/
suspend is /etc/acpi/suspend.d/
pmutils is /usr/lib64/pm-utils/sleep.d/
dbus is /etc/dbus-1/system.d/
dbus-service is /usr/share/dbus-1/system-services/
systemd is /lib/systemd/system/
logrotate is /etc/logrotate.d/
desktop is /usr/share/applications/
icons is /usr/share/icons/hicolor/
translations is /usr/share/locale/
autostart is /etc/xdg/autostart/
varlib is /var/lib/wicd/
init is /etc/rc.d/
docdir is /usr/doc/wicd-1.7.2.4/
mandir is /usr/man/
kdedir is /usr/share/autostart/
python is /usr/bin/python
pidfile is /var/run/wicd/wicd.pid
initfile is init/slackware/rc.wicd
initfilename is wicd
wicdgroup is netdev
distro is slackware
loggroup is
logperms is 0600
Found switch ('no-install-init', None, 'do not install the init file') False
Found switch ('no-install-man', None, 'do not install the man files') False
Found switch ('no-install-i18n-man', None, 'do not install the translated man files') False
Found switch ('no-install-kde', None, 'do not install the kde autostart file') True
Found switch ('no-install-acpi', None, 'do not install the suspend.d and resume.d acpi scripts') True
Found switch ('no-install-pmutils', None, 'do not install the pm-utils hooks') False
Found switch ('no-install-docs', None, 'do not install the auxiliary documentation') False
Found switch ('no-install-ncurses', None, 'do not install the ncurses client') False
Found switch ('no-install-cli', None, 'do not install the command line executable') False
Found switch ('no-install-gtk', None, 'do not install the gtk client') False
Found switch ('no-use-notifications', None, 'do not ever allow the use of libnotify notifications') False
Replacing values in template files...
Replacing values in man=wicd-curses.8.in man/wicd-curses.8
Replacing values in other=50-wicd-suspend.sh.in other/50-wicd-suspend.sh
Replacing values in other=wicd.conf.in other/wicd.conf
Replacing values in init=pld=wicd.in (mkdir init/pld) init/pld/wicd
Replacing values in init=arch=wicd.in (mkdir init/arch) init/arch/wicd
Replacing values in man=wicd-cli.8.in man/wicd-cli.8
Replacing values in other=wicd.logrotate.in other/wicd.logrotate
Replacing values in wicd=wpath.py.in wicd/wpath.py
Replacing values in init=suse=wicd.in (mkdir init/suse) init/suse/wicd
Replacing values in init=lunar=wicd.in (mkdir init/lunar) init/lunar/wicd
Replacing values in man=wicd-wireless-settings.conf.5.in man/wicd-wireless-settings.conf.5
Replacing values in scripts=wicd-client.in (mkdir scripts) scripts/wicd-client
Replacing values in init=gentoo=wicd.in (mkdir init/gentoo) init/gentoo/wicd
Replacing values in wpath.py.in wpath.py
Replacing values in scripts=wicd-gtk.in scripts/wicd-gtk
Replacing values in other=55wicd.in other/55wicd
Replacing values in scripts=wicd-cli.in scripts/wicd-cli
Replacing values in man=wicd.8.in man/wicd.8
Replacing values in scripts=wicd-curses.in scripts/wicd-curses
Replacing values in other=80-wicd-connect.sh.in other/80-wicd-connect.sh
Replacing values in init=debian=wicd.in (mkdir init/debian) init/debian/wicd
Replacing values in man=nl=wicd-curses.8.in man/nl/wicd-curses.8
Replacing values in other=WHEREAREMYFILES.in other/WHEREAREMYFILES
Replacing values in scripts=wicd.in scripts/wicd
Replacing values in man=nl=wicd-wired-settings.conf.5.in man/nl/wicd-wired-settings.conf.5
Replacing values in init=default=wicd.in (mkdir init/default) init/default/wicd
Replacing values in man=nl=wicd-manager-settings.conf.5.in man/nl/wicd-manager-settings.conf.5
Replacing values in init=slackware=rc.wicd.in (mkdir init/slackware) init/slackware/rc.wicd
Replacing values in man=nl=wicd.8.in man/nl/wicd.8
Replacing values in man=wicd-manager-settings.conf.5.in man/wicd-manager-settings.conf.5
Replacing values in init=redhat=wicd.in (mkdir init/redhat) init/redhat/wicd
Replacing values in man=nl=wicd-wireless-settings.conf.5.in man/nl/wicd-wireless-settings.conf.5
Replacing values in man=wicd-wired-settings.conf.5.in man/wicd-wired-settings.conf.5
compiling catalog 'po/nn.po' to 'translations/nn/LC_MESSAGES/wicd.mo'
compiling catalog 'po/te.po' to 'translations/te/LC_MESSAGES/wicd.mo'
compiling catalog 'po/tr.po' to 'translations/tr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/vi.po' to 'translations/vi/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ru.po' to 'translations/ru/LC_MESSAGES/wicd.mo'
compiling catalog 'po/fa.po' to 'translations/fa/LC_MESSAGES/wicd.mo'
compiling catalog 'po/sl.po' to 'translations/sl/LC_MESSAGES/wicd.mo'
compiling catalog 'po/zh_HK.po' to 'translations/zh_HK/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ml.po' to 'translations/ml/LC_MESSAGES/wicd.mo'
compiling catalog 'po/pt.po' to 'translations/pt/LC_MESSAGES/wicd.mo'
compiling catalog 'po/lv.po' to 'translations/lv/LC_MESSAGES/wicd.mo'
compiling catalog 'po/da.po' to 'translations/da/LC_MESSAGES/wicd.mo'
compiling catalog 'po/eu.po' to 'translations/eu/LC_MESSAGES/wicd.mo'
compiling catalog 'po/id.po' to 'translations/id/LC_MESSAGES/wicd.mo'
compiling catalog 'po/es.po' to 'translations/es/LC_MESSAGES/wicd.mo'
compiling catalog 'po/hu.po' to 'translations/hu/LC_MESSAGES/wicd.mo'
compiling catalog 'po/zh_CN.po' to 'translations/zh_CN/LC_MESSAGES/wicd.mo'
compiling catalog 'po/nl.po' to 'translations/nl/LC_MESSAGES/wicd.mo'
compiling catalog 'po/pl.po' to 'translations/pl/LC_MESSAGES/wicd.mo'
compiling catalog 'po/sk.po' to 'translations/sk/LC_MESSAGES/wicd.mo'
compiling catalog 'po/hr.po' to 'translations/hr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/bg.po' to 'translations/bg/LC_MESSAGES/wicd.mo'
compiling catalog 'po/uk.po' to 'translations/uk/LC_MESSAGES/wicd.mo'
compiling catalog 'po/fr.po' to 'translations/fr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/sr.po' to 'translations/sr/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ka.po' to 'translations/ka/LC_MESSAGES/wicd.mo'
compiling catalog 'po/el.po' to 'translations/el/LC_MESSAGES/wicd.mo'
compiling catalog 'po/nb.po' to 'translations/nb/LC_MESSAGES/wicd.mo'
compiling catalog 'po/fi.po' to 'translations/fi/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ro.po' to 'translations/ro/LC_MESSAGES/wicd.mo'
compiling catalog 'po/sv.po' to 'translations/sv/LC_MESSAGES/wicd.mo'
compiling catalog 'po/de.po' to 'translations/de/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ja.po' to 'translations/ja/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ko.po' to 'translations/ko/LC_MESSAGES/wicd.mo'
compiling catalog 'po/pt_BR.po' to 'translations/pt_BR/LC_MESSAGES/wicd.mo'
Traceback (most recent call last):
  File "/usr/bin/pybabel", line 9, in <module>
    load_entry_point('Babel==0.9.6', 'console_scripts', 'pybabel')()
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/messages/frontend.py", line 1107, in main
    return CommandLineInterface().run(sys.argv)
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/messages/frontend.py", line 651, in run
    return getattr(self, cmdname)(args[1:])
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/messages/frontend.py", line 752, in compile
    catalog = read_po(infile, locale)
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/messages/pofile.py", line 124, in read_po
    catalog = Catalog(locale=locale, domain=domain)
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/messages/catalog.py", line 215, in __init__
    locale = Locale.parse(locale)
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/core.py", line 212, in parse
    return cls(*parse_locale(identifier, sep=sep))
  File "/usr/lib64/python2.7/site-packages/Babel-0.9.6-py2.7.egg/babel/core.py", line 137, in __init__
    raise UnknownLocaleError(identifier)
babel.core.UnknownLocaleError: unknown locale 'ast'
compiling catalog 'po/gl.po' to 'translations/gl/LC_MESSAGES/wicd.mo'
compiling catalog 'po/lt.po' to 'translations/lt/LC_MESSAGES/wicd.mo'
compiling catalog 'po/he.po' to 'translations/he/LC_MESSAGES/wicd.mo'
compiling catalog 'po/en.po' to 'translations/en/LC_MESSAGES/wicd.mo'
compiling catalog 'po/ca.po' to 'translations/ca/LC_MESSAGES/wicd.mo'
compiling catalog 'po/it.po' to 'translations/it/LC_MESSAGES/wicd.mo'
compiling catalog 'po/cs.po' to 'translations/cs/LC_MESSAGES/wicd.mo'
compiling catalog 'po/et.po' to 'translations/et/LC_MESSAGES/wicd.mo'
compiling catalog 'po/zh_TW.po' to 'translations/zh_TW/LC_MESSAGES/wicd.mo'
compiling catalog 'po/eo.po' to 'translations/eo/LC_MESSAGES/wicd.mo'
compiling catalog 'po/kk.po' to 'translations/kk/LC_MESSAGES/wicd.mo'

if i run

python setup.py install

this ends up with:

error: can't copy 'translations/ast/LC_MESSAGES/wicd.mo': doesn't exist or not a regular file

can someone, please, advise me what to do in order to build wicd?
i really can't see if i didn't properly install babel or if there some dependencies missing.
thanks in advance,

--
nirinA

Question information

Language:
English Edit question
Status:
Solved
For:
wicd Edit question
Assignee:
No assignee Edit question
Solved by:
David Paleino
Solved:
2012-11-18
Last query:
2012-11-18
Last reply:
2012-11-18
Best David Paleino (dpaleino) said : #1

Just delete po/ast.po.

Unfortunately, Asturian (ast) is not yet supported by pybabel (so it's really a bug in pybabel).
Thus, it requires some workarounds, like either deleting it, or compiling it by hand. So, unless you need the Asturian translation, just delete it :)

I'm planning on switching back from pybabel, and just use the old plain "msgfmt" from gettext.

yes, i deletde po/ast.po and the installation succeeded.
thanks a lot,
--
nirinA