Vanilla Local Galaxy Installation Is Giving Error: "No Module Called Eggs"
3
1
Entering edit mode
11.0 years ago
JacobS ▴ 990

Hi, sorry for the installation-related question, but I was hoping someone might know a quick fix. While installing Galaxy on my local machine (with Python 2.7.3), I am getting the following error upon commanding sh run.sh:

Initializing tool-data/srma_index.loc from srma_index.loc.sample
Initializing tool-data/twobit.loc from twobit.loc.sample
Initializing static/welcome.html from welcome.html.sample
Traceback (most recent call last):
  File "./scripts/check_eggs.py", line 32, in <module>
    from galaxy.eggs import Crate
ImportError: No module named eggs
Some eggs are out of date, attempting to fetch...
Traceback (most recent call last):
  File "./scripts/fetch_eggs.py", line 28, in <module>
    from galaxy.eggs import Crate, EggNotFetchable
ImportError: No module named eggs
Fetch failed.

Has anyone encountered this before?

galaxy python • 4.1k views
ADD COMMENT
1
Entering edit mode

You'll need to install the chicken module; unfortunately, that one has a dependency on eggs, so it's hard to know what to suggest.

ADD REPLY
0
Entering edit mode

well done, for a second there I mused on the potential complexities of circular imports

ADD REPLY
1
Entering edit mode
11.0 years ago
Nate Coraor ▴ 10

The check_eggs.py and fetch_eggs.py scripts automatically add Galaxy's lib/ directory to Python's sys.path, albeit at the end. It looks like you may have something on your sys.path named galaxy that is being found before galaxy-dist/lib/galaxy/. What does the output of python -c 'import galaxy; print galaxy' show?

ADD COMMENT
0
Entering edit mode
11.0 years ago

that pretty much looks like an import error one would get if files were missing or the path was incorrect.

look into the galaxy package and it whould have an eggs module.

another possibility is that you are running this in a manner where the run.sh cannot properly set the import path

ADD COMMENT
0
Entering edit mode
11.0 years ago
indexofire ▴ 40

make sure galaxy is in python sys.path

ADD COMMENT

Login before adding your answer.

Traffic: 2639 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6