Edgewall Software
Modify

Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#10589 closed defect (cantfix)

TRAC installation fails with UnknownLocaleError

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 0.13dev
Severity: normal Keywords: installation, locale, UnknownLocaleError, Ubuntu
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I' trying to install latest TRAC dev with easy_install on Ubuntu 12.04 LTS Server. Installing Babel and Genshi works fine, but trying to install TARC itself fails with an UnknownLocaleError:

sudo easy_install -z -U Trac==dev
Searching for Trac==dev
Reading http://pypi.python.org/simple/Trac/
Reading http://trac.edgewall.org/
Reading http://trac.edgewall.org/wiki/TracDownload
Reading http://trac.edgewall.com/
Reading http://projects.edgewall.com/trac
Reading http://projects.edgewall.com/trac/wiki/TracDownload
Best match: Trac dev
Downloading http://svn.edgewall.org/repos/trac/trunk#egg=Trac-dev
Doing subversion checkout from http://svn.edgewall.org/repos/trac/trunk to /tmp/easy_install-_ubDh1/trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-_ubDh1/trunk/egg-dist-tmp-J9aPEq
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 9, in <module>
    load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 'easy_install')()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1931, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1912, in with_ei_usage
    return f()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1935, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 368, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 608, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 638, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 828, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1105, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 1094, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 30, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 72, in run
    return func()
  File "/usr/lib/python2.7/dist-packages/setuptools/sandbox.py", line 32, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 158, in <module>
    **extra
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 179, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/bdist_egg.py", line 166, in call_command
    self.run_command(cmdname)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/tmp/easy_install-_ubDh1/trunk/trac/dist.py", line 361, in run
  File "/tmp/easy_install-_ubDh1/trunk/trac/dist.py", line 394, in l10n_run
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "build/bdist.linux-x86_64/egg/babel/messages/frontend.py", line 142, in run
  File "build/bdist.linux-x86_64/egg/babel/messages/pofile.py", line 124, in read_po
  File "build/bdist.linux-x86_64/egg/babel/messages/catalog.py", line 215, in __init__
  File "build/bdist.linux-x86_64/egg/babel/core.py", line 212, in parse
  File "build/bdist.linux-x86_64/egg/babel/core.py", line 137, in __init__
babel.core.UnknownLocaleError: unknown locale 'fa'

tryed with Babel 0.9.5 and 0.9.6 Installation without Babel works fine.

Attachments (0)

Change History (3)

comment:1 by Jun Omae, 13 years ago

Resolution: cantfix
Status: newclosed

This is an InstallationIssue, please use the MailingList and IrcChannel.

And, it seems that Babel on your environment has an installation issue. Babel supports fa locale. Try the following command:

$ python -c 'from babel import Locale; Locale("fa")'

If the command fails with the same UnknownLocaleError exception, re-install Babel using apt-get install python-babel.

comment:2 by Sean, 10 years ago

This seems to be an issue related to Python-Babel in general. The only solution for me was removing python-babel entirely.

in reply to:  2 comment:3 by Ryan J Ollos, 10 years ago

Replying to Sean:

This seems to be an issue related to Python-Babel in general

What mechanism did you use to install Babel? I believe that I've encountered this issue when installing from source and not following all of the steps: babel:SubversionCheckout.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.