There's a lot of details left out of your post that I would need in order
to provide a truly solid answer. I'll do my best, though.

If you're getting an import error, and you think the wrong version of
SQLAlchemy is being imported, then how the import is happening matters.

Are you doing this via "paster serve", or via mod_wsgi, or some other
mechanism? In either case, did you create the virtualenv with the
"--no-site-packages" option? Without that, the system could be using the
system wide site-packages. Did you activate the virtualenv? Again, if not,
the system wide site-packages would be in play. If you're using mod_wsgi,
you need to modify the environment variables to ensure that the proper
site-packages is being honored.

If none of those apply, then, if you'll tell me how you created the
virtualenv and how you're running the code, I'll help you figure it out
from there.

On Mon, Jun 25, 2012 at 1:56 PM, Guillaume Viger
<[email protected]>wrote:

> Hi,
>
> I am deploying a TurboGears application in a virtualenv on Fedora 16, but
> on the import sqlachemy.exc in the sqlalchemy module throws AttributeError:
> 'module' object has no attribute 'exc'. The virtualenv site-packages
> directory does contain the SQLAlchemy-0.7.7-py2.7-linux-i686.egg file (it
> is not a directory like many other .egg entries though). My application was
> installed by using 'python setup.py install' with TurboGears == 2.1.5 and
> sqlalchemy in the install_requires list among other packages.
> I think the issue has to do with the
> site-package SQLAlchemy-0.7.7-py2.7-linux-i686.egg being a file and not a
> directory containing the exc.py file.
>
> How do I solve this issue?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/7i2CfbonjegJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.
>



-- 
Michael J. Pedersen
My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen
Google Talk: [email protected] -- Twitter: pedersentg

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to