On Wednesday, January 5, 2011 12:36:08 AM UTC-8, Roger Oberholtzer wrote:
>
> On Tue, 2011-01-04 at 23:02 +0100, Holger Bruenjes wrote:
> > Hallo
> > 
> > Am 2011-01-04 19:50, schrieb Christian Boos:
> > 
> > >> but, when I use
> > >>
> > >> easy_install -z Babel==0.9.5
> > >>
> > >> then Trac compiled with error
> > >
> > > ... and even that still worked for me. Which version of easy_install 
> are
> > > you using? I was using setuptools-0.6c12 (on Linux).
> > 
> > I installed on Linux
> > 
> > it does not work :-(
> > 
> > easy_install -U setuptools
> > Best match: setuptools 0.6c12dev-r85381
> > 
> > easy_install pytz==2010o
> > 
> > easy_install -z Babel==0.9.5
> > 
> > easy_install Genshi==0.6
> > 
> > easy_install Trac==0.12.1
> > 
> >    File "/usr/bin/easy_install", line 8, in <module>
> >      load_entry_point('setuptools==0.6c12dev-r85381', 
> > 'console_scripts', 'easy_install')()
> > 
> > ....
> > 
> >    File "build/bdist.linux-i686/egg/babel/core.py", line 212, in parse
> >    File "build/bdist.linux-i686/egg/babel/core.py", line 137, in 
> > __init__
> > babel.core.UnknownLocaleError: unknown locale 'ca'
> > 
> > 
> > hmm, than I use Babel witout -z
> > 
> > Thanks
> > Holger
> > 
>
> I am doing a similar thing, and getting the exact same results.
>
> Traceback (most recent call last):
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 436, in 
> send_error
>     data, 'text/html')
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 833, in 
> render_template
>     data = self.populate_data(req, data)
>   File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 756, in 
> populate_data
>     'locale': req and req.locale,
>   File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 212, in 
> __getattr__
>     value = self.callbacks[name](self)
>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 311, in 
> _get_locale
>     req.languages)
>   File "/usr/lib/python2.6/site-packages/trac/util/translation.py", line 
> 341, in get_negotiated_locale
>     normalize(get_available_locales()), sep='-')
>   File "build/bdist.freebsd-8.0-STABLE-i386/egg/babel/core.py", line 185, 
> in negotiate
>     return Locale.parse(identifier, sep=sep)
>   File "build/bdist.freebsd-8.0-STABLE-i386/egg/babel/core.py", line 212, 
> in parse
>     return cls(*parse_locale(identifier, sep=sep))
>   File "build/bdist.freebsd-8.0-STABLE-i386/egg/babel/core.py", line 137, 
> in __init__
>     raise UnknownLocaleError(identifier)
> UnknownLocaleError: unknown locale 'en_US
>

I've encountered a similar issue. Here is the output from trying to run the 
test suite.

Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/home/user/Workspace/teo-rjollos.git/trac/test.py", line 29, in 
<module>
    locale_en = Locale.parse('en_US')
  File "/home/user/Workspace/test/trunk/babel/core.py", line 214, in parse
    return cls(*parse_locale(identifier, sep=sep))
  File "/home/user/Workspace/test/trunk/babel/core.py", line 137, in 
__init__
    raise UnknownLocaleError(identifier)
babel.core.UnknownLocaleError: unknown locale 'en_US'


The issue was that I installed from a Subversion checkout and hadn't 
"imported the CLDR data".
http://babel.edgewall.org/wiki/SubversionCheckout

I wouldn't expect that to be an issue running easy_install, but maybe it's 
related.

 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to