[Zope] Pounding Python Eggs

2007-03-05 Thread tonylabarbara
Hi;
I'm trying to install ZMySQLDA on a new server I'm building. I got this error:
 
Traceback (most recent call last):
  File /usr/local/zope/278/lib/python/Zope/Startup/run.py, line 50, in ?
run()
  File /usr/local/zope/278/lib/python/Zope/Startup/run.py, line 19, in run
start_zope(opts.configroot)
  File /usr/local/zope/278/lib/python/Zope/Startup/__init__.py, line 52, in 
start_zope
starter.startZope()
  File /usr/local/zope/278/lib/python/Zope/Startup/__init__.py, line 231, in 
startZope
Zope.startup()
  File /usr/local/zope/278/lib/python/Zope/__init__.py, line 47, in startup
_startup()
  File /usr/local/zope/278/lib/python/Zope/App/startup.py, line 45, in startup
OFS.Application.import_products()
  File /usr/local/zope/278/lib/python/OFS/Application.py, line 650, in 
import_products
import_product(product_dir, product_name, raise_exc=debug_mode)
  File /usr/local/zope/278/lib/python/OFS/Application.py, line 673, in 
import_product
product=__import__(pname, global_dict, global_dict, silly)
  File /usr/local/zope/instance1/Products/ZMySQLDA/__init__.py, line 91, in ?
import DA
  File /usr/local/zope/instance1/Products/ZMySQLDA/DA.py, line 91, in ?
from db import DB
  File /usr/local/zope/instance1/Products/ZMySQLDA/db.py, line 89, in ?
import _mysql
  File build/bdist.freebsd-6.2-RELEASE-i386/egg/_mysql.py, line 7, in ?
  File build/bdist.freebsd-6.2-RELEASE-i386/egg/_mysql.py, line 4, in 
__bootstrap__
  File 
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py,
 line 799, in resource_filename
return get_provider(package_or_requirement).get_resource_filename(
  File 
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py,
 line 1228, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))
  File 
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py,
 line 1249, in _extract_resource
real_path = manager.get_cache_path(
  File 
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py,
 line 880, in get_cache_path
self.extraction_error()
  File 
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py,
 line 846, 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: '/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.
 
 
Well, I don't have any .python-eggs file anywhere...nor on my old server 
either, that has ZMySQLDA functioning just fine (that is, if find / -name 
.python-eggs should turn something up). Furthermore, I'm using Pound, not 
Apache. What should I do?
TIA,
Tony

AOL now offers free email to everyone.  Find out more about what's free from 
AOL at AOL.com.
___
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] Pounding Python Eggs

2007-03-05 Thread Andreas Jung



--On 5. März 2007 06:26:30 -0500 [EMAIL PROTECTED] wrote:


Hi;
/usr/local/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_re
sources.py, line 846, 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: '/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.



The error message is self-speaking. You don't have permission
to write into /root/.python-eggs. Perhapse setuptools wants to create the 
directory first if it does not exists. The solution is also included

with the error message.

-aj



pgpGyq8Dq7kXC.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 )