On May 24, Jon Sabo <[EMAIL PROTECTED]> wrote:

> So there seems to be a ridiculous amount of problems that I'm
> guessing stem mostly from either different versions of python or
> different versions of sqlobject.

Yup, SQLObject has way too many different versions for my taste.

> Version 0.8.4 gives the error:
  [...]
> ImportError: No module named MySQLdb

This should be self-explanatory: you don't have MySQLdb installed (or
it can't be found in sys.path).

> Version 0.9.0 gives:
  [...]
> ImportError: No module named formencode

Again, you need formencode to use SQLObject; I've FormEncode 0.6
installed in my Python 2.5 library.

> Version .10 (development) gives:
  [...]
> ImportError: No module named formencode

As above.

> Even though formencode appeared to be in the site-packages
> directory. I guessed that maybe calling easy_install formencode might
> work out, so I did it and it basically told me it was already done.

If you ask me, I think that the whole easy_install/ez_setup/eggs thing
sucks a lot, but maybe I've never understood the point about these thing.


> I tried it again, and got something different from before when I
> coped the output, so now I'm really confused. Is it possible that it
> is from the way easy_install handles installs of different versions
> of the same module?

Try to start with a clean setup: remove formencode, MySQL_python and
SQLObject.
Then reinstall the packages in the above order; I use a simple:
   python2.5 ./setup.py install

from the source package.
I use MySQL_python and SQLObject versions on their respective SVN,
and with python 2.5 work ok (imdbpy2sql.py runs smoothly).

Check your easy-install.pth file in the site-packages directory of
the library for python 2.5; mine is (notice that I've installed it
in /usr/local):
import sys; sys.__plen = len(sys.path)
./setuptools-0.6c5-py2.5.egg
./FormEncode-0.6-py2.5.egg
/usr/local/lib/python2.5/site-packages
./IMDbPY-3.0-py2.5-linux-i686.egg
./MySQL_python-1.3.0-py2.5-linux-i686.egg
./SQLObject-0.10dev_r2072-py2.5.egg
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; 
p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)

My sys.path is:
['/usr/local/lib/python2.5/site-packages/setuptools-0.6c5-py2.5.egg', 
'/usr/local/lib/python2.5/site-packages/FormEncode-0.6-py2.5.egg', 
'/usr/local/lib/python2.5/site-packages', 
'/usr/local/lib/python2.5/site-packages/IMDbPY-3.0-py2.5-linux-i686.egg', 
'/usr/local/lib/python2.5/site-packages/MySQL_python-1.3.0-py2.5-linux-i686.egg',
 '/usr/local/lib/python2.5/site-packages/SQLObject-0.10dev_r2072-py2.5.egg', 
'/usr/local/lib/python25.zip', '/usr/local/lib/python2.5', 
'/usr/local/lib/python2.5/plat-linux2', '/usr/local/lib/python2.5/lib-tk', 
'/usr/local/lib/python2.5/lib-dynload', 
'/usr/local/lib/python2.5/site-packages', '']


Again: to me, the whole approach of the Python Eggs is confusing,
at least. :-/


HTH,
-- 
Davide Alberani <[EMAIL PROTECTED]> [PGP KeyID: 0x465BFD47]
http://erlug.linux.it/~da/

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to