As a follow-up, I've found a work-around. By deleting all preferred languages settings in Edit->Preferences->Content in Firefox the web pages are loaded correctly. The error appears to stem from the setup_il8( self ) function at line 200 in /homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py and only works when 'if 'HTTP_ACCEPT_LANGUAGE' in self.environ:' is false and drops to the default 'else' block. Even when the 'HTTP_ACCEPT_LANGUAGE' is set to 'en' (as for the 'else' block), the code fails. Cheers, Chris On 12/11/10 12:22, Chris Cole wrote:
Hi,
I've just updated our local Galaxy install and got an error when trying to run it. It started fine, but as soon as I tried to connect with Firefox it brought up a server error:
10.31.3.203 - - [12/Nov/2010:12:07:05 +0100] "GET / HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux i686; rv:2.0b7) Gecko/20100101 Firefox/4.0b7" Error - <class 'babel.core.UnknownLocaleError'>: unknown locale 'en_GB' URL: http://xxxxxxxxxxxxx/ File '/homes/www-galaxy/galaxy_devel/eggs/Paste-1.6-py2.6.egg/paste/exceptions/errormiddleware.py', line 143 in __call__ app_iter = self.application(environ, start_response) File '/homes/www-galaxy/galaxy_devel/eggs/Paste-1.6-py2.6.egg/paste/recursive.py', line 80 in __call__ return self.application(environ, start_response) File '/homes/www-galaxy/galaxy_devel/eggs/Paste-1.6-py2.6.egg/paste/httpexceptions.py', line 632 in __call__ return self.application(environ, start_response) File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/base.py', line 119 in __call__ trans = self.transaction_factory( environ ) File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py', line 161 in <lambda> self.set_transaction_factory( lambda e: self.transaction_chooser( e, galaxy_app, session_cookie ) ) File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py', line 181 in transaction_chooser return GalaxyWebUITransaction( environ, galaxy_app, self, session_cookie ) File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py', line 785 in __init__ GalaxyWebTransaction.__init__( self, environ, app, webapp ) File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py', line 193 in __init__ self.setup_i18n() File '/homes/www-galaxy/galaxy_devel/lib/galaxy/web/framework/__init__.py', line 204 in setup_i18n locales = [ Locale.parse(l.split( ';' )[0], sep='-').language for l in locales ] File '/homes/www-galaxy/galaxy_devel/eggs/Babel-0.9.4-py2.6.egg/babel/core.py', line 212 in parse File '/homes/www-galaxy/galaxy_devel/eggs/Babel-0.9.4-py2.6.egg/babel/core.py', line 137 in __init__ UnknownLocaleError: unknown locale 'en_GB'
Strangely, /homes/www-galaxy/galaxy_devel/eggs/Babel-0.9.4-py2.6.egg/babel/core.py doesn't exist? Any pointers on how to fix this? Cheers,
Chris _______________________________________________ galaxy-dev mailing list galaxy-dev@lists.bx.psu.edu http://lists.bx.psu.edu/listinfo/galaxy-dev
-- Dr Chris Cole Senior Bioinformatics Research Officer School of Life Sciences Research University of Dundee Dow Street Dundee DD1 5EH Scotland, UK url: http://network.nature.com/profile/drchriscole e-mail: chris@compbio.dundee.ac.uk Tel: +44 (0)1382 388 721 The University of Dundee is a registered Scottish charity, No: SC015096