Hi; In building MySQL-python (so that I can get ZMySQLDA to work) I read the following: Finally, putting it together: $ python setup.py build # python setup.py install TIP: If you are using a binary package of Zope, you need run setup.py with Zope's python executable. Otherwise, Zope (ZMySQLDA) will not be able to find _mysql. What exactly does that tip say? Can someone write me an example line? What is *Zope's python executable*? TIA, BenO
Ben Ocean schrieb:
Hi; In building MySQL-python (so that I can get ZMySQLDA to work) I read the following:
Finally, putting it together:
$ python setup.py build # python setup.py install
TIP: If you are using a binary package of Zope, you need run setup.py with Zope's python executable. Otherwise, Zope (ZMySQLDA) will not be able to find _mysql.
What exactly does that tip say? Can someone write me an example line? What is *Zope's python executable*?
type 'locate python' or 'find / - name python' and 'which python' if you get more python interpreters than 1 you have to look which python is started on Zope startup. _mysql must be in the search path of the python which is started by Zope z2.py start script I didn't worry about this since my python is /usr/lib/python and _mysql is in /usr/lib/python (/site-packages)
TIA, BenO
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
At 10:21 PM 1/2/02 +0100, you wrote:
Hi; In building MySQL-python (so that I can get ZMySQLDA to work) I read the following:
Finally, putting it together:
$ python setup.py build # python setup.py install
TIP: If you are using a binary package of Zope, you need run setup.py with Zope's python executable. Otherwise, Zope (ZMySQLDA) will not be able to find _mysql.
What exactly does that tip say? Can someone write me an example line? What is *Zope's python executable*?
type 'locate python' or 'find / - name python' and 'which python'
Well, that tells me where the binary is... /usr/local/bin/python
_mysql must be in the search path of the python which is started by Zope z2.py start script
I didn't worry about this since my python is /usr/lib/python and _mysql is in /usr/lib/python (/site-packages)
Well, the python installation is in /usr/local/lib/python blah blah and site-packages is in there, so I guess it should work...but it doesn't. The MySQLDA module throws the error of not being able to import the MySQL module. What do? TIA, BenO
My _mysql.so is in : /usr/lib/python2.1/site-packages/_mysql.so /usr/lib/python2.1/site-packages/_mysql_exceptions.py /usr/lib/python2.1/site-packages/_mysql_exceptions.pyc /usr/lib/python2.1 is your /usr/local/lib/python in my db.py is the following import: import _mysql from _mysql_exceptions import OperationalError, NotSupportedError MySQLdb_version_required = (0,9,0) try python db.py Does this give an mysql-relevant error ?? I have ZMySQLDA 2.0.8 Hope this helps. I had similar problems with MySQL. I had an old ZMySQLDA version. Don't know if that is your problmen. Regards, Dirk
At 10:52 PM 1/2/02 +0100, you wrote:
My _mysql.so is in :
/usr/lib/python2.1/site-packages/_mysql.so /usr/lib/python2.1/site-packages/_mysql_exceptions.py /usr/lib/python2.1/site-packages/_mysql_exceptions.pyc
/usr/lib/python2.1 is your /usr/local/lib/python
in my db.py is the following import:
import _mysql from _mysql_exceptions import OperationalError, NotSupportedError MySQLdb_version_required = (0,9,0)
try
python db.py
Does this give an mysql-relevant error ??
#python db.py python: can't open file 'db.py' #find / -name "db.py" /home/httpd/ZopeInstallation/OtherProducts/ZMySQLDA/db.py /home/httpd/ZopeInstallation/Zope_software_home/lib/python/Products/ZGadflyDA/db.py #pwd /home/virtuals/mercury/html/GlobalRequestPatch #cd /home/httpd/ZopeInstallation/OtherProducts/ZMySQLDA/ #python db.py Traceback (most recent call last): File "db.py", line 106, in ? import MySQL, regex, sys ImportError: No module named MySQL
I have ZMySQLDA 2.0.8
Hope this helps. I had similar problems with MySQL. I had an old ZMySQLDA version. Don't know if that is your problmen.
I have the most recent. The problem is with this module MySQL. Where do I get it? TIA, BenO
Hi Ben , have you downloaded both python libs ZMySQLDA and MySQL-python ? look that my _mysql is in lowercase and with a underline before. If have MySQL-python from http://sourceforge.net/projects/mysql-python ZMySQLDA from http://www.zope.org/Members/adustman/Products/ZMySQLDA What is with the unix rights for zope-user ? Regards, Dirk Ben Ocean schrieb:
At 10:52 PM 1/2/02 +0100, you wrote:
My _mysql.so is in :
/usr/lib/python2.1/site-packages/_mysql.so /usr/lib/python2.1/site-packages/_mysql_exceptions.py /usr/lib/python2.1/site-packages/_mysql_exceptions.pyc
/usr/lib/python2.1 is your /usr/local/lib/python
in my db.py is the following import:
import _mysql from _mysql_exceptions import OperationalError, NotSupportedError MySQLdb_version_required = (0,9,0)
try
python db.py
Does this give an mysql-relevant error ??
#python db.py python: can't open file 'db.py' #find / -name "db.py" /home/httpd/ZopeInstallation/OtherProducts/ZMySQLDA/db.py /home/httpd/ZopeInstallation/Zope_software_home/lib/python/Products/ZGadflyDA/db.py #pwd /home/virtuals/mercury/html/GlobalRequestPatch #cd /home/httpd/ZopeInstallation/OtherProducts/ZMySQLDA/ #python db.py Traceback (most recent call last): File "db.py", line 106, in ? import MySQL, regex, sys ImportError: No module named MySQL
I have ZMySQLDA 2.0.8
Hope this helps. I had similar problems with MySQL. I had an old ZMySQLDA version. Don't know if that is your problmen.
I have the most recent. The problem is with this module MySQL. Where do I get it? TIA, BenO
At 07:06 AM 1/3/02 +0100, you wrote:
have you downloaded both python libs ZMySQLDA and MySQL-python ?
Affirmative.
look that my _mysql is in lowercase and with a underline before.
#find / -name "_mysql"
If have MySQL-python from http://sourceforge.net/projects/mysql-python ZMySQLDA from http://www.zope.org/Members/adustman/Products/ZMySQLDA
What is with the unix rights for zope-user ?
LOL! Linux rules! Any other ideas? TIA, BenO
At 07:06 AM 1/3/02 +0100, you wrote:
have you downloaded both python libs ZMySQLDA and MySQL-python ? look that my _mysql is in lowercase and with a underline before.
Oops! My bad... #find / -name "_mysql*" /usr/local/lib/python2.1/site-packages/_mysql_exceptions.py /usr/local/lib/python2.1/site-packages/_mysql.so /usr/local/lib/python2.1/site-packages/_mysql_exceptions.pyc /usr/local/MySQL-python-0.9.1/_mysql.c /usr/local/MySQL-python-0.9.1/_mysql_exceptions.py /usr/local/MySQL-python-0.9.1/build/lib.linux-i686-2.1/_mysql_exceptions.py /usr/local/MySQL-python-0.9.1/build/lib.linux-i686-2.1/_mysql.so /usr/local/MySQL-python-0.9.1/build/temp.linux-i686-2.1/_mysql.o /usr/lib/python2.1/site-packages/_mysql.so /usr/lib/python2.1/site-packages/_mysql_exceptions.py /usr/lib/python2.1/site-packages/_mysql_exceptions.pyc BenO
Did you install zope from source? I had trouble installing MySQLDA when I used the binary zope install package, after I installed zope from source, MySQLDA installed without problems. Regards, Mehmet On Thursday 03 January 2002 05:06 pm, you wrote:
Hi Ben ,
have you downloaded both python libs ZMySQLDA and MySQL-python ? look that my _mysql is in lowercase and with a underline before.
If have MySQL-python from http://sourceforge.net/projects/mysql-python ZMySQLDA from http://www.zope.org/Members/adustman/Products/ZMySQLDA
What is with the unix rights for zope-user ?
Regards, Dirk
Ben Ocean schrieb:
At 10:52 PM 1/2/02 +0100, you wrote:
My _mysql.so is in :
Hi Mehmet, Ben has solved the problem. Thanks, Dirk Mehmet Yousouf schrieb:
Did you install zope from source? I had trouble installing MySQLDA when I used the binary zope install package, after I installed zope from source, MySQLDA installed without problems.
Regards, Mehmet
On Thursday 03 January 2002 05:06 pm, you wrote:
Hi Ben ,
have you downloaded both python libs ZMySQLDA and MySQL-python ? look that my _mysql is in lowercase and with a underline before.
If have MySQL-python from http://sourceforge.net/projects/mysql-python ZMySQLDA from http://www.zope.org/Members/adustman/Products/ZMySQLDA
What is with the unix rights for zope-user ?
Regards, Dirk
Ben Ocean schrieb:
At 10:52 PM 1/2/02 +0100, you wrote:
My _mysql.so is in :
participants (3)
-
Ben Ocean -
Dirk Datzert -
Mehmet Yousouf