A bit more info.

I started Plone in debug mode and got the following errors:

2010-09-01 16:00:06 ERROR Application Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/OFS/Application.py",
line 709, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/__init__.py",
line 90, in ?
    import DA
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/DA.py",
line 92, in ?
    from db import DBPool, DB
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/db.py",
line 89, in ?
    import _mysql
  File "build/bdist.linux-i686/egg/_mysql.py", line 7, in ?
    __bootstrap__()
  File "build/bdist.linux-i686/egg/_mysql.py", line 4, in __bootstrap__
    __file__ = pkg_resources.resource_filename(__name__,'_mysql.so')
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
    self._extract_resource(manager, self._eager_to_zip(name))
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
    real_path = manager.get_cache_path(
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
    self.extraction_error()
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 928, 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:
'/usr/local/Plone/zeocluster/var/.python-eggs'

The Python egg cache directory is currently set to:

  /usr/local/Plone/zeocluster/var/.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.

Traceback (most recent call last):
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/Startup/run.py",
line 56, in ?
    run()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/Startup/run.py",
line 21, in run
    starter.prepare()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/Startup/__init__.py",
line 102, in prepare
    self.startZope()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/Startup/__init__.py",
line 278, in startZope
    Zope2.startup()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/__init__.py",
line 47, in startup
    _startup()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/App/startup.py",
line 45, in startup
    OFS.Application.import_products()
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/OFS/Application.py",
line 686, in import_products
    import_product(product_dir, product_name, raise_exc=debug_mode)
  File
"/usr/local/Plone/Zope-2.10.11-final-py2.4/lib/python/OFS/Application.py",
line 709, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/__init__.py",
line 90, in ?
    import DA
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/DA.py",
line 92, in ?
    from db import DBPool, DB
  File
"/usr/local/Plone/buildout-cache/eggs/Products.ZMySQLDA-3.1-py2.4.egg/Products/ZMySQLDA/db.py",
line 89, in ?
    import _mysql
  File
"/usr/local/Plone/buildout-cache/eggs/MySQL_python-1.2.3-py2.4-linux-i686.egg/_mysql.py",
line 7, in ?
    __bootstrap__()
  File
"/usr/local/Plone/buildout-cache/eggs/MySQL_python-1.2.3-py2.4-linux-i686.egg/_mysql.py",
line 4, in __bootstrap__
    __file__ = pkg_resources.resource_filename(__name__,'_mysql.so')
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 881, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 1351, in get_resource_filename
    self._extract_resource(manager, self._eager_to_zip(name))
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 1372, in _extract_resource
    real_path = manager.get_cache_path(
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 962, in get_cache_path
    self.extraction_error()
  File
"/usr/local/Plone/buildout-cache/eggs/setuptools-0.6c11-py2.4.egg/pkg_resources.py",
line 928, in extraction_error
    raise err
pkg_resources.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:
'/usr/local/Plone/zeocluster/var/.python-eggs'

The Python egg cache directory is currently set to:

  /usr/local/Plone/zeocluster/var/.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.

I don't have a /usr/local/Plone/zeocluster/var/.python-eggs folder!

Can anyone explain what's happening here and what I need to do?

Cheers,  Jim
-- 
View this message in context: 
http://plone.293351.n2.nabble.com/Plone-MySQL-No-Z-MYSQL-Database-Connection-from-ZMI-tp5487160p5487441.html
Sent from the Installation, Setup, Upgrades mailing list archive at Nabble.com.
_______________________________________________
Setup mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/setup

Reply via email to