Re: [Zope] can not install ZMySQLDA
Sorry! I'm new to this fields. Where can I change this PYTHON_EGG_CACHE? Is it in zope.conf? I can not find it. Thanks, -DY On Thu, March 8, 2007 10:28 pm, Maciej Wisniowski wrote: I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? And what with /home/zope permissions? You may also try to set PYTHON_EGG_CACHE variable to a different folder. I've never had such problems so I can't help too much. Try to search the web for this problem, you'll possibly find something. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
--On 9. März 2007 08:19:50 -0800 Daniel [EMAIL PROTECTED] wrote: Sorry! I'm new to this fields. Where can I change this PYTHON_EGG_CACHE? Is it in zope.conf? I can not find it. PYTHON_EGG_CACHE is an environment variable and has nothing to do with Zope. -aj pgpg8H33YRPNw.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
export PYTHON_EGG_CACHE=/tmp chmod 777 tmp /opt/Plone-2.5.2/zeocluster/bin/restartcluster.sh It still has the same error, and did not got to the /tmp directory. Where did I set wrong? Thanks, Daniel ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/root/.python-eggs' The Python egg cache directory is currently set to: /root/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. On Fri, March 9, 2007 8:27 am, Andreas Jung wrote: --On 9. März 2007 08:19:50 -0800 Daniel [EMAIL PROTECTED] wrote: Sorry! I'm new to this fields. Where can I change this PYTHON_EGG_CACHE? Is it in zope.conf? I can not find it. PYTHON_EGG_CACHE is an environment variable and has nothing to do with Zope. -aj ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
[Zope] can not install ZMySQLDA
Hi, I've installed Plone 2.5.2 by the new intaller on a linux box. It came with zope 2.9.6, Python 2.4.4. But I can not make ZMySQLDA installed on zope. Can anyone help me? I installed MySQL-python-1.2.2 with the same version of python for plone. sudo /opt/Plone2.5.2/Python2.4.4/bin/python setup.py build sudo /opt/Plone2.5.2/Python2.4.4/bin/python setup.py install tar xzvf ZMySQLDA-2.0.8.tar.gz cp -r ZMySQLDA /opt/Plone-2.5.2/zeocluster/Products/ Restart zope. But nothing install in the Products? then I change to Products/ZMySQLDA directory try to import DA, it has the following error? $ /opt/Plone-2.5.2/Python-2.4.4/bin/python Python 2.4.4 (#1, Mar 5 2007, 20:29:49) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2 Type help, copyright, credits or license for more information. import sys,string import DA Traceback (most recent call last): File stdin, line 1, in ? File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/DA.py, line 155, in ? misc_={'conn': ImageFile( File /opt/Plone-2.5.2/Python-2.4.4/lib/python2.4/site-packages/PIL/ImageFile.py, line 74, in __init__ self.fp = open(fp, rb) IOError: [Errno 2] No such file or directory: 'Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif' the file DBAdapterFolder_icon.gif is actually in /opt/Plone-2.5.2/lib/python/Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif Any suggestion? Thanks, JY ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
Any suggestion? What is /opt/Plone-2.5.2/zeocluster? Is this zeo server or zeo client in your installation? You should copy your ZMySQLDA to Products/ folder of your zope instance (zeo client). I suppose you've copied this to zeo server. To see your's instance path go to Control Panel in Zope Management Interface. After copying restart Zope and in ZMI go to ControlPanel/Products and see if your product is there and if it is not broken. You may also check event.log of your instance if something goes wrong. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
Send your emails also to the zope list, please. There were questions about this recently (not sure if it was here or on Zope3s list. Message says that you have to set proper permissions to the .pyton-eggs folder, so just do it (give write access to everybody or something like that). -- Maciej Wisniowski Hi, The contorl panel showed as following: Zope Version (Zope 2.9.6-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Mar 5 2007, 20:29:49) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] System Platform linux2 SOFTWARE_HOME /opt/Plone-2.5.2/lib/python ZOPE_HOME /opt/Plone-2.5.2 INSTANCE_HOME /opt/Plone-2.5.2/zeocluster/client1 CLIENT_HOME /opt/Plone-2.5.2/zeocluster/client1/var Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) Process Id 4060 (-1277957200) Running For 14 hours 44 min 36 sec Path of my installed ZMySQLDA is: client1]# ls -las /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA total 196 8 drwxr-xr-x 4 plone wheel 4096 Mar 7 22:28 . 8 drwxrwxr-x 50 plone root 4096 Mar 7 15:01 .. 8 -rw-r--r-- 1 plone wheel 397 Mar 7 15:01 browse.dtml 8 -rw-r--r-- 1 plone wheel 1756 Mar 7 15:01 CHANGES.txt 8 -rw-r--r-- 1 plone wheel 2451 Mar 7 15:01 connectionAdd.dtml 8 -rw-r--r-- 1 plone wheel 1310 Mar 7 15:01 connectionEdit.dtml 16 -rwxr-xr-x 1 plone wheel 8804 Mar 7 15:01 DABase.py 12 -rw-r--r-- 1 root root 6643 Mar 7 22:28 DABase.pyc 12 -rw-r--r-- 1 plone wheel 6090 Mar 7 15:01 DA.py 8 -rw-r--r-- 1 plone plone 3169 Mar 7 15:03 DA.pyc 16 -rw-r--r-- 1 plone wheel 11946 Mar 7 15:01 db.py 16 -rw-r--r-- 1 plone plone 8640 Mar 7 15:03 db.pyc 8 -rw-r--r-- 1 plone wheel45 Mar 7 15:01 DEPENDENCIES.txt 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 help 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 icons 12 -rw-r--r-- 1 plone wheel 4351 Mar 7 15:01 __init__.py 8 -rw-r--r-- 1 plone plone 906 Mar 7 15:03 __init__.pyc 8 -rw-r--r-- 1 plone wheel 1220 Mar 7 15:01 README.txt 8 -rw-r--r-- 1 plone wheel 202 Mar 7 15:01 table_info.dtml 8 -rw-r--r-- 1 plone wheel15 Mar 7 15:01 VERSION.txt [EMAIL PROTECTED] client1]# The event.log has an erro : 2007-03-08T13:40:57 ERROR Zope Couldn't install ZMySQLDA Traceback (most recent call last): File /opt/Plone-2.5.2/lib/python/OFS/Application.py, line 755, in install_product global_dict, global_dict, silly) File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/__init__.py, line 91, in ? import DA File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/DA.py, line 92, in ? from db import DB File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/db.py, line 89, in ? import _mysql File build/bdist.linux-i686/egg/_mysql.py, line 7, in ? File build/bdist.linux-i686/egg/_mysql.py, line 4, in __bootstrap__ File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 799, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1228, in get_resource_filename self._extract_resource(manager, self._eager_to_zip(name)) File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1249, in _extract_resource real_path = manager.get_cache_path( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 880, in get_cache_path self.extraction_error() File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 846, in extraction_error raise err ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/home/zope/.python-eggs' The Python egg cache directory is currently set to: /home/zope/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment How can I correct it ? Thanks. - J ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? Thanks, -J On 3/8/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: Send your emails also to the zope list, please. There were questions about this recently (not sure if it was here or on Zope3s list. Message says that you have to set proper permissions to the .pyton-eggs folder, so just do it (give write access to everybody or something like that). -- Maciej Wisniowski Hi, The contorl panel showed as following: Zope Version (Zope 2.9.6-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Mar 5 2007, 20:29:49) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] System Platform linux2 SOFTWARE_HOME /opt/Plone-2.5.2/lib/python ZOPE_HOME /opt/Plone-2.5.2 INSTANCE_HOME /opt/Plone-2.5.2/zeocluster/client1 CLIENT_HOME /opt/Plone-2.5.2/zeocluster/client1/var Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) Process Id 4060 (-1277957200) Running For 14 hours 44 min 36 sec Path of my installed ZMySQLDA is: client1]# ls -las /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA total 196 8 drwxr-xr-x 4 plone wheel 4096 Mar 7 22:28 . 8 drwxrwxr-x 50 plone root 4096 Mar 7 15:01 .. 8 -rw-r--r-- 1 plone wheel 397 Mar 7 15:01 browse.dtml 8 -rw-r--r-- 1 plone wheel 1756 Mar 7 15:01 CHANGES.txt 8 -rw-r--r-- 1 plone wheel 2451 Mar 7 15:01 connectionAdd.dtml 8 -rw-r--r-- 1 plone wheel 1310 Mar 7 15:01 connectionEdit.dtml 16 -rwxr-xr-x 1 plone wheel 8804 Mar 7 15:01 DABase.py 12 -rw-r--r-- 1 root root 6643 Mar 7 22:28 DABase.pyc 12 -rw-r--r-- 1 plone wheel 6090 Mar 7 15:01 DA.py 8 -rw-r--r-- 1 plone plone 3169 Mar 7 15:03 DA.pyc 16 -rw-r--r-- 1 plone wheel 11946 Mar 7 15:01 db.py 16 -rw-r--r-- 1 plone plone 8640 Mar 7 15:03 db.pyc 8 -rw-r--r-- 1 plone wheel45 Mar 7 15:01 DEPENDENCIES.txt 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 help 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 icons 12 -rw-r--r-- 1 plone wheel 4351 Mar 7 15:01 __init__.py 8 -rw-r--r-- 1 plone plone 906 Mar 7 15:03 __init__.pyc 8 -rw-r--r-- 1 plone wheel 1220 Mar 7 15:01 README.txt 8 -rw-r--r-- 1 plone wheel 202 Mar 7 15:01 table_info.dtml 8 -rw-r--r-- 1 plone wheel15 Mar 7 15:01 VERSION.txt [EMAIL PROTECTED] client1]# The event.log has an erro : 2007-03-08T13:40:57 ERROR Zope Couldn't install ZMySQLDA Traceback (most recent call last): File /opt/Plone-2.5.2/lib/python/OFS/Application.py, line 755, in install_product global_dict, global_dict, silly) File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/__init__.py, line 91, in ? import DA File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/DA.py, line 92, in ? from db import DB File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/db.py, line 89, in ? import _mysql File build/bdist.linux-i686/egg/_mysql.py, line 7, in ? File build/bdist.linux-i686/egg/_mysql.py, line 4, in __bootstrap__ File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 799, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1228, in get_resource_filename self._extract_resource(manager, self._eager_to_zip(name)) File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1249, in _extract_resource real_path = manager.get_cache_path( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 880, in get_cache_path self.extraction_error() File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 846, in extraction_error raise err ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/home/zope/.python-eggs' The Python egg cache directory is currently set to: /home/zope/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment How can I correct it ? Thanks. - J ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] can not install ZMySQLDA
In the event.log file, I can not locate the file _mysql.py . File build/bdist.linux-i686/egg/_mysql.py, line 7, in ? File build/bdist.linux-i686/egg/_mysql.py, line 4, in __bootstrap__ I remember python-eggs was installed automatically when I install MySQL-python , is there a way to check that? Thanks, On 3/8/07, jaly youth [EMAIL PROTECTED] wrote: I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? Thanks, -J On 3/8/07, Maciej Wisniowski [EMAIL PROTECTED] wrote: Send your emails also to the zope list, please. There were questions about this recently (not sure if it was here or on Zope3s list. Message says that you have to set proper permissions to the .pyton-eggs folder, so just do it (give write access to everybody or something like that). -- Maciej Wisniowski Hi, The contorl panel showed as following: Zope Version (Zope 2.9.6-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Mar 5 2007, 20:29:49) [GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] System Platform linux2 SOFTWARE_HOME /opt/Plone-2.5.2/lib/python ZOPE_HOME /opt/Plone-2.5.2 INSTANCE_HOME /opt/Plone-2.5.2/zeocluster/client1 CLIENT_HOME /opt/Plone-2.5.2/zeocluster/client1/var Network Services ZServer.HTTPServer.zhttp_server (Port: 8080) Process Id 4060 (-1277957200) Running For 14 hours 44 min 36 sec Path of my installed ZMySQLDA is: client1]# ls -las /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA total 196 8 drwxr-xr-x 4 plone wheel 4096 Mar 7 22:28 . 8 drwxrwxr-x 50 plone root 4096 Mar 7 15:01 .. 8 -rw-r--r-- 1 plone wheel 397 Mar 7 15:01 browse.dtml 8 -rw-r--r-- 1 plone wheel 1756 Mar 7 15:01 CHANGES.txt 8 -rw-r--r-- 1 plone wheel 2451 Mar 7 15:01 connectionAdd.dtml 8 -rw-r--r-- 1 plone wheel 1310 Mar 7 15:01 connectionEdit.dtml 16 -rwxr-xr-x 1 plone wheel 8804 Mar 7 15:01 DABase.py 12 -rw-r--r-- 1 root root 6643 Mar 7 22:28 DABase.pyc 12 -rw-r--r-- 1 plone wheel 6090 Mar 7 15:01 DA.py 8 -rw-r--r-- 1 plone plone 3169 Mar 7 15:03 DA.pyc 16 -rw-r--r-- 1 plone wheel 11946 Mar 7 15:01 db.py 16 -rw-r--r-- 1 plone plone 8640 Mar 7 15:03 db.pyc 8 -rw-r--r-- 1 plone wheel45 Mar 7 15:01 DEPENDENCIES.txt 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 help 8 drwxr-xr-x 2 plone wheel 4096 Mar 7 15:01 icons 12 -rw-r--r-- 1 plone wheel 4351 Mar 7 15:01 __init__.py 8 -rw-r--r-- 1 plone plone 906 Mar 7 15:03 __init__.pyc 8 -rw-r--r-- 1 plone wheel 1220 Mar 7 15:01 README.txt 8 -rw-r--r-- 1 plone wheel 202 Mar 7 15:01 table_info.dtml 8 -rw-r--r-- 1 plone wheel15 Mar 7 15:01 VERSION.txt [EMAIL PROTECTED] client1]# The event.log has an erro : 2007-03-08T13:40:57 ERROR Zope Couldn't install ZMySQLDA Traceback (most recent call last): File /opt/Plone-2.5.2/lib/python/OFS/Application.py, line 755, in install_product global_dict, global_dict, silly) File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/__init__.py, line 91, in ? import DA File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/DA.py, line 92, in ? from db import DB File /opt/Plone-2.5.2/zeocluster/client1/Products/ZMySQLDA/db.py, line 89, in ? import _mysql File build/bdist.linux-i686/egg/_mysql.py, line 7, in ? File build/bdist.linux-i686/egg/_mysql.py, line 4, in __bootstrap__ File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 799, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1228, in get_resource_filename self._extract_resource(manager, self._eager_to_zip(name)) File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 1249, in _extract_resource real_path = manager.get_cache_path( File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 880, in get_cache_path self.extraction_error() File /opt/Plone-2.5.2/Python-2.4.4 /lib/python2.4/site-packages/setuptools-0.6c5-py2.4.egg/pkg_resources.py, line 846, in extraction_error raise err ExtractionError: Can't extract file(s) to egg cache The following error occurred while trying to extract file(s) to the Python egg cache: [Errno 13] Permission denied: '/home/zope/.python-eggs' The Python egg cache directory is currently set to: /home/zope/.python-eggs Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment How can I correct it ? Thanks. - J
Re: [Zope] can not install ZMySQLDA
I already change the permission. 8 drwxrwxrwx 4 zope zope 4096 Mar 7 22:13 .python-eggs The result is the same. I completely lost? And what with /home/zope permissions? You may also try to set PYTHON_EGG_CACHE variable to a different folder. I've never had such problems so I can't help too much. Try to search the web for this problem, you'll possibly find something. -- Maciej Wisniowski ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )