The real problem is that ZMySQLDA doesn't find the module '_mysql' . I thought that the reazon was the 'skipping' error. Now I see it is not. But, why is the module not created or why is it not found by ZMySQLDA ?
I used both MySQLdb-0.3.2 and 0.9.1 with same results.
If I use ZMySQLDA -2.0.8, is there no problem with Zope-2.3.3?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Your problem is probably due to multiple Python installations. If your Zope installation has it's own Python within it, you need to install MySQLdb within that Python. See the README for 0.9.1 for tips.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried many things but I can't find why I have all those "skipping" errors. Could sombody help me?
I have read some similar messages, but I haven't found the answer. I used Zope 2.3.3, ZMySQLDA 2.0.6 and MySQL-python-0.3.2.
I followed the instructions exactly as the manual said (and also as the manual didn't say), but setup.py can not create '_mysql'.
setup.py presents this messages at compilation time:
[root@localhost MySQL-python-0.3.2]# /usr/local/Zope/bin/python setup.py build
running build
running build_py
creating build
creating build/lib.linux-i686-1.5
copying MySQLdb.py -> build/lib.linux-i686-1.5
copying CompatMysqldb.py -> build/lib.linux-i686-1.5
running build_ext
building '_mysql' extension
creating build/temp.linux-i686-1.5
gcc -g -O2 -fPIC -I/usr/include/mysql -I/usr/local/Zope/include/python1.5 -c _mysqlmodule.c -o build/temp.linux-i686-1.5/_mysqlmodule.o
gcc -shared build/temp.linux-i686-1.5/_mysqlmodule.o -L/usr/lib/mysql -lmysqlclient -lz -o build/lib.linux-i686-1.5/_mysql.so
____
[root@localhost MySQL-python-0.3.2]# /usr/local/Zope/bin/python setup.py install
running install
running build
running build_py
not copying MySQLdb.py (output up-to-date)
not copying CompatMysqldb.py (output up-to-date)
running build_ext
skipping '_mysql' extension (up-to-date)
running install_lib
not copying build/lib.linux-i686-1.5/MySQLdb.py (output up-to-date)
not copying build/lib.linux-i686-1.5/CompatMysqldb.py (output up-to-date)
copying build/lib.linux-i686-1.5/_mysql.so -> /usr/local/Zope/lib/python1.5/site-packages
skipping byte-compilation of /usr/local/Zope/lib/python1.5/site-packages/MySQLdb.py to MySQLdb.pyc
skipping byte-compilation of /usr/local/Zope/lib/python1.5/site-packages/CompatMysqldb.py to CompatMysqldb.pyc
Those are not errors. The install skips byte-compilation because it was already done in the build.
Don't use MySQLdb-0.3.2: It is very old. Get MySQLdb-0.9.1 plus ZMySQLDA-2.0.8.
The real problem is that ZMySQLDA doesn't find the module '_mysql' . I thought that the reazon was the 'skipping' error. Now I see it is not. But, why is the module not created or why is it not found by ZMySQLDA ?
I used both MySQLdb-0.3.2 and 0.9.1 with same results.
If I use ZMySQLDA -2.0.8, is there no problem with Zope-2.3.3?
Your problem is probably due to multiple Python installations. If your Zope installation has it's own Python within it, you need to install MySQLdb within that Python. See the README for 0.9.1 for tips.