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

In running a local instance of galaxy project installed on my MacBook Pro, when I 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/", line 32, in <module> File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 1052, in run invoke(command, command_name, options, args[1:]) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 1058, in invoke exit_code = File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 221, in run result = self.command() File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", 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/", line 352, in loadapp return loadobj(APP, uri, name=name, **kw) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 376, in loadobj global_conf=global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 401, in loadcontext global_conf=global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 425, in _loadconfig return loader.get_context(object_type, name, global_conf) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 563, in get_context section) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 622, in _context_from_explicit value = import_string(found_expr) File "/Users/yang/galaxy/lib/galaxy/util/pastescript/", line 127, in import_string return pkg_resources.EntryPoint.parse("x=" + s).load(False) File "/Users/yang/galaxy/lib/", line 1954, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "/Users/yang/galaxy/lib/galaxy/web/", line 5, in <module> from galaxy.webapps.galaxy.buildapp import app_factory File "/Users/yang/galaxy/lib/galaxy/webapps/galaxy/", line 15, in <module> import File "/Users/yang/galaxy/lib/galaxy/", line 9, in <module> import galaxy.queues File "/Users/yang/galaxy/lib/galaxy/", line 19, in <module> from kombu import Exchange, Queue, Connection File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/", 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/", line 10, in <module> from .abstract import MaybeChannelBound File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/", line 12, in <module> from .connection import maybe_channel File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/", line 21, in <module> from .log import get_logger File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/", line 11, in <module> from .utils import cached_property File "/Users/yang/galaxy/eggs/kombu-3.0.24-py2.7.egg/kombu/utils/", line 19, in <module> from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random ImportError: cannot import name _uuid_generate_random
galaxy • 1.3k views
ADD COMMENTlink written 2.1 years ago by ewhameta0


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.1 years ago by Hotz, Hans-Rudolf1.7k

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 <>:

ADD REPLYlink written 2.1 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 "" is. Rename the 'eggs' directory, eg:

mv eggs _eggs

create a new 'eggs' directory:

mkdir eggs

and start galaxy with 'sh'


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


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