On 05.01.2009 13:31 Uhr, kphigh wrote:
> You are correct Andreas, there is an error with the install.. It appear
> MySQLDA cannot be imported because of where the Python egg cache is located.
> I checke and there is no .python-eggs in /root/ I read in one of the posts
> that the python cache can be pointed to another directory.. How is this
> done?
Perhaps you should not play around if root if you don't know about the
side-effect? There is basically little need for playing root within the
context of Zope and Plone. If you have file permissions issues: use
chmod/chown for fixing the ownership or permissions.
-aj
> thanks
> kevin
>
>
> 2009-01-05 07:21:40 ERROR Application Could not import Products.ZMySQLDA
> Traceback (most recent call last):
> File "/opt/Plone-3.1/zinstance/parts/zope2/lib/python/OFS/Application.py",
> line 709, in import_product
> product=__import__(pname, global_dict, global_dict, silly)
> File "/opt/Plone-3.1/zinstance/products/ZMySQLDA/__init__.py", line 90, in
> ?
> import DA
> File "/opt/Plone-3.1/zinstance/products/ZMySQLDA/DA.py", line 92, in ?
> from db import DBPool, DB
> File "/opt/Plone-3.1/zinstance/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
> "/home/steve/Plone-3.1/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
> line 840, in resource_filename
> return get_provider(package_or_requirement).get_resource_filename(
> File
> "/home/steve/Plone-3.1/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
> line 1310, in get_resource_filename
> self._extract_resource(manager, self._eager_to_zip(name))
> File
> "/home/steve/Plone-3.1/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
> line 1331, in _extract_resource
> real_path = manager.get_cache_path(
> File
> "/home/steve/Plone-3.1/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
> line 921, in get_cache_path
> self.extraction_error()
> File
> "/home/steve/Plone-3.1/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py",
> line 887, 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: '/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.
>
>
>
> Andreas Jung-5 wrote:
>> On 02.01.2009 17:06 Uhr, kphigh wrote:
>>> Thanks Andreas..
>>>
>>> I tried MySQLDA(Installed
>>> in/opt/Plone-3.1/zinstance/parts/instance/Products) and it does not
>>> appear
>>> in the ZMI drop downs..
>>>
>> Then your installation is broken. Start Zope in the foreground and check
>> for console messages.
>>
>> -aj
>>
>> begin:vcard
>> fn:Andreas Jung
>> n:Jung;Andreas
>> org:ZOPYX Ltd.& Co. KG
>> adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
>> email;internet:info@...
>> title:CEO
>> tel;work:+49-7071-793376
>> tel;fax:+49-7071-7936840
>> tel;home:+49-7071-793257
>> x-mozilla-html:FALSE
>> url:www.zopyx.com
>> version:2.1
>> end:vcard
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Plone-Users mailing list
>> Plone-Users@...
>> https://lists.sourceforge.net/lists/listinfo/plone-users
>>
>>
>
--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: http://www.zopyx.com - Email: info@... - Phone +49 - 7071 - 793376
Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535
Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK
------------------------------------------------------------------------
E-Publishing, Python, Zope & Plone development, Consulting
|