Confusing, desparate MySQLdb problems...

Ned Deily nad at
Sun Jan 17 20:41:47 CET 2010

In article 
<109c960c-656b-4ea7-b69f-100e30804899 at>,
 stopchuckingstuff <stopchuckingstuff at> wrote:
> On Jan 17, 5:52 pm, Ned Deily <n... at> wrote:
> > In article
> > <94e8cfd8-d299-4c23-9e9e-d3f17d4c9... at>,
> > > What I don't understand is if the path is there, why doesn't it find
> > > the module?
> > Perhaps it is just a permissions problem since Apache is probably
> > running under a different user name.  Check the owner/group and
> > permissions of the various module directories and files. Make sure the
> > directories and .so files have at least r-x and the python files at
> > least r-- across the board.
> Of course! how did i not realise that... it wasn't the python-eggs
> directory, but the directory containing the modules (namely /Library/
> Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages)
> - i changed the permissions, and its all sorted!

Yay!  Sorry, I should have thought of permissions earlier: I've been 
bitten by that more than once.  It's an important thing to keep in mind 
when encountering missing imports: always check file system permissions 

 Ned Deily,
 nad at

More information about the Python-list mailing list