strange attributeerror module object has no attribute exc when using sqlalchemy from a mod_wsgi handle

796 views
Skip to first unread message

alonn

unread,
Mar 27, 2012, 5:39:11 PM3/27/12
to sqlal...@googlegroups.com
this is what I got from tailing the mod_wsgi error stack:

[Tue Mar 27 23:14:16 2012] [error] [client 127.0.0.1]     from sqlalchemy import create_engine,String,Unicode,Integer, Column, func,distinct, desc
[Tue Mar 27 23:14:16 2012] [error] [client 127.0.0.1]   File "/path/to/virtualenv/app/data/virtenv/lib/python2.6/site-packages/sqlalchemy/__init__.py", line 10, in <module>
[Tue Mar 27 23:35:50 2012] [error] [client 127.0.0.1] AttributeError: 'module' object has no attribute 'exc'

actually when I run the file directly from python without mod_wsgi the error doesn' t show up.. strange

I'll be glas any help/exprience  with this strange problem? 

Michael Bayer

unread,
Mar 27, 2012, 5:48:21 PM3/27/12
to sqlal...@googlegroups.com
sometimes things like that happen when theres a recursion overflow, though I've never seen it occur at module import time like that, save for a bug we've observed in Jython.


--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/_kN4u5tgkXwJ.
To post to this group, send email to sqlal...@googlegroups.com.
To unsubscribe from this group, send email to sqlalchemy+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.

Michel Albert

unread,
Jun 12, 2012, 9:31:26 AM6/12/12
to sqlal...@googlegroups.com
I have the exact same problem... Did you find a solution yet on your end? 

Michel Albert

unread,
Jun 12, 2012, 10:01:12 AM6/12/12
to sqlal...@googlegroups.com
Upon closer inspection it was an access rights problem. mod_wsgi could not write into it's "egg-cache". 
The following section of the docs explains how to fix this: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Access_Rights_Of_Apache_User

After that I had to restart the server. Not only touch the WSGI file!
Reply all
Reply to author
Forward
Message has been deleted
0 new messages