I installed pysqlite2 using easy_install. and got this when using it from modpython: -------------------------------------------------------------------------------------------------- Mod_python error: "PythonHandler etc.modpython"
Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch result = object(req) File "/usr/lib/python2.4/site-packages/spark/proj/etc/modpython.py", line 21, in handler return ReqModPython(req).run() File "/usr/lib/python2.4/site-packages/spark/ReqBase.py", line 141, in run con_mod = __import__(conf,'','',['']) File "/var/www/hello/controllers/wiki_controller.py", line 6, in ? Storm.conn(driver='sqlite',db="/var/www/hello/etc/sparkdemo.db") File "/usr/lib/python2.4/site-packages/spark/storm.py", line 64, in conn cls.__CONN = __import__('db'+driver).DbSpark(**kwds) File "/usr/lib/python2.4/site-packages/spark/dbsqlite.py", line 7, in ? try: from pysqlite2 import dbapi2 as sqlite File "build/bdist.linux-i686/egg/pysqlite2/dbapi2.py", line 27, in ? File "build/bdist.linux-i686/egg/pysqlite2/_sqlite.py", line 7, in ? File "build/bdist.linux-i686/egg/pysqlite2/_sqlite.py", line 4, in __bootstrap__ File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/pkg_resources.py", line 799, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/pkg_resources.py", line 1229, in get_resource_filename return self._extract_resource(manager, zip_path) File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/pkg_resources.py", line 1249, in _extract_resource real_path = manager.get_cache_path( File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-py2.4.egg/pkg_resources.py", line 880, in get_cache_path self.extraction_error() File "/usr/lib/python2.4/site-packages/setuptools-0.6c2-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: '/var/www/.python-eggs' The Python egg cache directory is currently set to: /var/www/.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. ---------------------------------------------------------------------------- Can peak developers fix this please? I know I won't have this problem with python 2.5 because it has sqlite3, but this affect other eggs too! Here's similiar occurance, I can't reply it since it's too old. http://groups.google.com/group/comp.lang.python/browse_thread/thread/d35e5264a6b491d5/cee519cb5557ad0e in the mean time, I just have to use old "download, unzip/untar && python setup.py install" way. Thanks -- http://mail.python.org/mailman/listinfo/python-list