Question: Vanilla Local Galaxy Installation Is Giving Error: "No Module Called Eggs"
1
gravatar for JacobS
5.4 years ago by
JacobS890
Cleveland, Ohio
JacobS890 wrote:

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?

python galaxy • 2.7k views
ADD COMMENTlink modified 5.4 years ago by Nate Coraor10 • written 5.4 years ago by JacobS890
1

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 REPLYlink written 5.4 years ago by David Quigley11k

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

ADD REPLYlink written 5.4 years ago by Istvan Albert ♦♦ 80k
1
gravatar for Nate Coraor
5.4 years ago by
Nate Coraor10
University Park, PA
Nate Coraor10 wrote:

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 COMMENTlink written 5.4 years ago by Nate Coraor10
0
gravatar for Istvan Albert
5.4 years ago by
Istvan Albert ♦♦ 80k
University Park, USA
Istvan Albert ♦♦ 80k wrote:

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 COMMENTlink written 5.4 years ago by Istvan Albert ♦♦ 80k
0
gravatar for indexofire
5.4 years ago by
indexofire30
Hong Kong
indexofire30 wrote:

make sure galaxy is in python sys.path

ADD COMMENTlink written 5.4 years ago by indexofire30
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 2.3.0
Traffic: 1915 users visited in the last hour