eggbasket

  • Thread starter andrea.crotti.0
  • Start date
A

andrea.crotti.0

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?
 
M

Miki Tebeka

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?
Do you have a local file/directory that is called sqlalchemy?
 
M

Miki Tebeka

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?
Do you have a local file/directory that is called sqlalchemy?
 
A

Andrea Crotti

Do you have a local file/directory that is called sqlalchemy?

Funny thing, I have the same problem with another machine, with
sqlalchemy installed system-wide instead of locally.

Strange issue, maybe a problem with python 2.7/Linux?
 
A

Andrea Crotti

Well it was easy, apparently sqlalchemy.exceptions doesn't exist but
sqlalchemy.exc does,
and that's the correct one, maybe a version problem...

I get another problem right after
File
"/home/andrea/PSI_refactor/test_local_pypi/lib/python2.7/site-packages/EggBasket-0.6.1b-py2.7.egg/eggbasket/commands.py",
line 82, in init_database
model.User.query().filter_by(user_name=u'admin').one()
TypeError: 'Query' object is not callable

so I might try chishop or anything else...

Actually do I really need to have a local pypi server to be able to use
easy_install?
If I have a whole directory full of directory eggs isn't there any way
to use that?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top