Re: [Trac] Trac fails with UnknownLocaleError after upgrade

2014-05-04 Thread Felix Mayer
I am on Trac 1.0.1-2. And removing python-babel seems to get me past this 
issue, thanks.

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


Re: [Trac] Trac fails with UnknownLocaleError after upgrade

2014-05-03 Thread Steffen Hoffmann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03.05.2014 00:41, Felix Mayer wrote:
>   File "/usr/lib/python2.7/dist-packages/babel/core.py", line 313, in parse
> raise UnknownLocaleError(input_id)
> UnknownLocaleError: unknown locale

You do not explicitly disclose your Trac version. I see you use
Python2.7, and no Trac plugin seems involved here (in traceback), so the
best guess is reinstalling babel with you distribution's tools [1].

Because Babel is optional for Trac you could even get rid of it by
uninstalling Babel, at least as temporary workaround.

Steffen Hoffmann


[1] http://trac.edgewall.org/ticket/10589
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iEYEARECAAYFAlNkylIACgkQ31DJeiZFuHcFSACgzylYE/5PMVpSiY1ebLBWjZpO
S28AnAizYbcOW/CCoQ+vUKjgRdo6FUf1
=INKy
-END PGP SIGNATURE-

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.


[Trac] Trac fails with UnknownLocaleError after upgrade

2014-05-03 Thread Felix Mayer
I recently upgraded my Ubuntu machine to 14.04, on which I have been using 
Trac for a while. When I tried to get into Trac, told me I had to upgrade 
it and the wiki from the command line, which I did. Now when I try to 
access Trac I get this error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/trac/web/api.py", line 514, in 
send_error
data, 'text/html')
  File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 976, in 
render_template
data = self.populate_data(req, data)
  File "/usr/lib/python2.7/dist-packages/trac/web/chrome.py", line 894, in 
populate_data
'locale': req and req.locale,
  File "/usr/lib/python2.7/dist-packages/trac/web/api.py", line 316, in 
__getattr__
value = self.callbacks[name](self)
  File "/usr/lib/python2.7/dist-packages/trac/web/main.py", line 279, in 
_get_locale
req.languages)
  File "/usr/lib/python2.7/dist-packages/trac/util/translation.py", line 348, 
in get_negotiated_locale
normalize(get_available_locales()))
  File "/usr/lib/python2.7/dist-packages/babel/core.py", line 201, in negotiate
return Locale.parse(identifier, sep=sep)
  File "/usr/lib/python2.7/dist-packages/babel/core.py", line 313, in parse
raise UnknownLocaleError(input_id)
UnknownLocaleError: unknown locale 'en_US'

What could be the problem?

-- 
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 trac-users+unsubscr...@googlegroups.com.
To post to this group, send email to trac-users@googlegroups.com.
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.