eggbasket

andrea.crotti.0 at gmail.com andrea.crotti.0 at gmail.com
Tue Oct 4 10:48:46 EDT 2011


I'm struggling trying to get a working local pypi server.

Now eggbasket apparently also supports upload, which should be nice.
So I:

- created a virtualenv
- installed all the necessary

and trying to initializing the server I get:

--8<---------------cut here---------------start------------->8---
eggbasket-server --init
Traceback (most recent call last):
  File "/home/andrea/.local/bin/eggbasket-server", line 9, in <module>
    load_entry_point('EggBasket==0.6.1b', 'console_scripts', 'eggbasket-server')()
  File "/home/andrea/.local/lib/python2.7/site-packages/EggBasket-0.6.1b-py2.7.egg/eggbasket/commands.py", line 145, in main
    init_database(args)
  File "/home/andrea/.local/lib/python2.7/site-packages/EggBasket-0.6.1b-py2.7.egg/eggbasket/commands.py", line 76, in init_database
    model = get_model()
  File "/usr/lib/python2.7/site-packages/TurboGears-1.5-py2.7.egg/turbogears/util.py", line 241, in get_model
    package = __import__(package_name, {}, {}, ["model"])
  File "/home/andrea/.local/lib/python2.7/site-packages/EggBasket-0.6.1b-py2.7.egg/eggbasket/model.py", line 22, in <module>
    from sqlalchemy.exceptions import InvalidRequestError
ImportError: No module named exceptions
--8<---------------cut here---------------end--------------->8---


But funny thing is that if try to understand to see what's going on,
from within "model.py"


import sqlalchemy.exceptions work perfectly, but importing something
inside it gives this strange error, any idea of what it could be?

How is it possible that the module exists and it's actually imported,
and not found when I actually try to import something from it?



More information about the Python-list mailing list