Question: local galaxy error: "can not import name _uuid_generate_random"
0
gravatar for ewhameta
2.7 years ago by
ewhameta0
Korea, Republic Of
ewhameta0 wrote:

In running a local instance of galaxy project installed on my MacBook Pro, when I run (sh run.sh) galaxy, it used to work smoothly.

But recently, when I did the same thing I get the following error message; (it's a bit long)

Can an expert on this help me??


  • Traceback (most recent call last): File "./scripts/paster.py", line 32, in <module> serve.run() File "/Users/yang/galaxy/lib/galaxy/util/pastescript/serve.py", line 1052, in run invoke(command, command_name, options, args[1:]) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/serve.py", line 1058, in invoke exit_code = runner.run(args) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/serve.py", line 221, in run result = self.command() File "/Users/yang/galaxy/lib/galaxy/util/pastescript/serve.py", line 637, in command app = loadapp( app_spec, name=app_name, relative_to=base, global_conf=vars) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 352, in loadapp return loadobj(APP, uri, name=name, **kw) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 376, in loadobj global_conf=global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 401, in loadcontext global_conf=global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 425, in _loadconfig return loader.get_context(object_type, name, global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 563, in get_context section) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 622, in _context_from_explicit value = import_string(found_expr) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/loadwsgi.py", line 127, in import_string return pkg_resources.EntryPoint.parse("x=" + s).load(False) File "/Users/yang/galaxy/lib/pkg_resources.py", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/Users/yang/galaxy/lib/galaxy/web/buildapp.py", line 5, in <module> from galaxy.webapps.galaxy.buildapp import app_factory File "/Users/yang/galaxy/lib/galaxy/webapps/galaxy/buildapp.py", line 15, in <module> import galaxy.app File "/Users/yang/galaxy/lib/galaxy/app.py", line 9, in <module> import galaxy.queues File "/Users/yang/galaxy/lib/galaxy/queues.py", line 19, in <module> from kombu import Exchange, Queue, Connection File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/__init__.py", line 67, in __getattr__ module = __import__(object_origins[name], None, None, [name]) File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/entity.py", line 10, in <module> from .abstract import MaybeChannelBound File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/abstract.py", line 12, in <module> from .connection import maybe_channel File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/connection.py", line 21, in <module> from .log import get_logger File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/log.py", line 11, in <module> from .utils import cached_property File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/utils/__init__.py", line 19, in <module> from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random ImportError: cannot import name _uuid_generate_random
galaxy • 1.7k views
ADD COMMENTlink written 2.7 years ago by ewhameta0
1

Hi

Are you sure, you didn't change anything? like changing the python version? What version of Galaxy are you running?

What happens, if you move your eggs sideways, create a new empty eggs directory, and start your instance again?

Regards, Hans-Rudolf

ADD REPLYlink written 2.7 years ago by Hotz, Hans-Rudolf1.8k

Thanks for the reply.

You know, I am not a computer guy. A friend of mine installed galaxy. But, the record shows that I installed python 2.7.11, after the galaxy was installed (I don't even know why). And my installation platform uses "py2.7-macosx-10.6-intel-ucs2"

About eggs, I don't know how to handle them.

I messed up, I guess.

Thanks Sanghwa Yang Ewha University Seoul, Korea

2016-03-15 17:27 GMT+09:00 Hotz, Hans-Rudolf on Galaxy Biostar < notifications@biostars.org>:

ADD REPLYlink written 2.7 years ago by ewhameta0

"about the eggs" - I don't know wheter it will fix it, but I guess it is wort trying:

go to your galaxy directory, ie the directory where the "run.sh" is. Rename the 'eggs' directory, eg:

mv eggs _eggs

create a new 'eggs' directory:

mkdir eggs

and start galaxy with 'sh run.sh'

Hans-Rudolf

ADD REPLYlink modified 2.7 years ago • written 2.7 years ago by Hotz, Hans-Rudolf1.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 166 users visited in the last hour