Hi! I am trying to launch Galaxy locally but I'm getting the following error: tkx417:galaxy pascarellagiovanni$ sh run.sh Traceback (most recent call last): File "./scripts/paster.py", line 33, in <module> serve.run() File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 1049, in run invoke(command, command_name, options, args[1:]) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 1055, in invoke exit_code = runner.run(args) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 220, in run result = self.command() File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 643, in command app = loadapp( app_spec, name=app_name, relative_to=base, global_conf=vars) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 350, in loadapp return loadobj(APP, uri, name=name, **kw) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 374, in loadobj global_conf=global_conf) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 399, in loadcontext global_conf=global_conf) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 423, in _loadconfig return loader.get_context(object_type, name, global_conf) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 561, in get_context section) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 620, in _context_from_explicit value = import_string(found_expr) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 125, in import_string return pkg_resources.EntryPoint.parse("x=" + s).load(False) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/web/__init__.py", line 4, in <module> from framework import expose File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/web/framework/__init__.py", line 40, in <module> from babel.support import Translations File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/support.py", line 29, in <module> from babel.dates import format_date, format_datetime, format_time, LC_TIME File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/dates.py", line 34, in <module> LC_TIME = default_locale('LC_TIME') File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/core.py", line 642, in default_locale return '_'.join(filter(None, parse_locale(locale))) File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/core.py", line 763, in parse_locale raise ValueError('expected only letters, got %r' % lang) ValueError: expected only letters, got 'utf-8' Anybody knows what this is about? Thanks, Giovanni
This looks to be a bug with the version of babel we're using (fixed in a newer revision that I'll update to after testing), combined with improperly set environment variables. Can you check your environment (just `env` in a terminal) and look for LC_ALL, LANGUAGE, and LANG. Are any of these set to *just* utf-8? It looks like they should probably be in a format like "en_US.utf-8". On Wed, Oct 2, 2013 at 5:30 AM, Giovanni Pascarella <mujupas@hotmail.com>wrote:
Hi!
I am trying to launch Galaxy locally but I'm getting the following error:
*tkx417:galaxy pascarellagiovanni$ sh run.sh*
*Traceback (most recent call last):*
* File "./scripts/paster.py", line 33, in <module>*
* serve.run()*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 1049, in run*
* invoke(command, command_name, options, args[1:])*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 1055, in invoke*
* exit_code = runner.run(args)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 220, in run*
* result = self.command()*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/serve.py", line 643, in command*
* app = loadapp( app_spec, name=app_name, relative_to=base, global_conf=vars)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 350, in loadapp*
* return loadobj(APP, uri, name=name, **kw)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 374, in loadobj*
* global_conf=global_conf)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 399, in loadcontext*
* global_conf=global_conf)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 423, in _loadconfig*
* return loader.get_context(object_type, name, global_conf)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 561, in get_context*
* section)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 620, in _context_from_explicit*
* value = import_string(found_expr)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 125, in import_string*
* return pkg_resources.EntryPoint.parse("x=" + s).load(False)*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/pkg_resources.py", line 1954, in load*
* entry = __import__(self.module_name, globals(),globals(), ['__name__'])*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/web/__init__.py", line 4, in <module>*
* from framework import expose*
* File "/Users/pascarellagiovanni/Desktop/galaxy/lib/galaxy/web/framework/__init__.py", line 40, in <module>*
* from babel.support import Translations*
* File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/support.py", line 29, in <module>*
* from babel.dates import format_date, format_datetime, format_time, LC_TIME*
* File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/dates.py", line 34, in <module>*
* LC_TIME = default_locale('LC_TIME')*
* File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/core.py", line 642, in default_locale*
* return '_'.join(filter(None, parse_locale(locale)))*
* File "/Users/pascarellagiovanni/Desktop/galaxy/eggs/Babel-0.9.4-py2.7.egg/babel/core.py", line 763, in parse_locale*
* raise ValueError('expected only letters, got %r' % lang)*
*ValueError: expected only letters, got 'utf-8'*
Anybody knows what this is about?
Thanks,
Giovanni
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
participants (2)
-
Dannon Baker
-
Giovanni Pascarella