python cgi .python-eggs
zhangzhu1984
|
1#
zhangzhu1984 发表于 2008-08-25 13:48
python cgi .python-eggs
[Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] The Python egg cache directory is currently set to:
[Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] /sbin/.python-eggs [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] Perhaps your account does not have write access to this directory? You can [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] change the cache directory by setting the PYTHON_EGG_CACHE environment [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] variable to point to an accessible directory. [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:00 2008] [error] [client 25.30.1.65] Premature end of script headers: alarm.py [Mon Aug 25 13:39:27 2008] [error] [client 25.30.1.19] File does not exist: /var/www/web/tianwang/table.css, referer: http://25.30.2.250/web/tianwang/record_141.php [Mon Aug 25 13:39:27 2008] [error] [client 25.30.1.19] File does not exist: /var/www/favicon.ico [Mon Aug 25 13:39:30 2008] [error] [client 25.30.1.19] File does not exist: /var/www/web/police/table.css, referer: http://25.30.2.250/web/police/y_log_172_17_29_141.php [Mon Aug 25 13:39:30 2008] [error] [client 25.30.1.19] File does not exist: /var/www/favicon.ico [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] Traceback (most recent call last): [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/local/apache/cgi-bin/alarm/alarm.py", line 2, in ? [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] import MySQLdb,music [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "build/bdist.linux-i686/egg/MySQLdb/__init__.py", line 19, in ? [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "build/bdist.linux-i686/egg/_mysql.py", line 7, in ? [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "build/bdist.linux-i686/egg/_mysql.py", line 4, in __bootstrap__ [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py", line 799, in resource_filename [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] return get_provider(package_or_requirement).get_resource_filename( [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py", line 1228, in get_resource_filename [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] self._extract_resource(manager, self._eager_to_zip(name)) [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py", line 1249, in _extract_resource [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] real_path = manager.get_cache_path( [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py", line 880, in get_cache_path [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] self.extraction_error() [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] File "/usr/lib/python2.3/site-packages/setuptools-0.6c5-py2.3.egg/pkg_resources.py", line 846, in extraction_error [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] raise err [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] pkg_resources.ExtractionError: Can't extract file(s) to egg cache [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] The following error occurred while trying to extract file(s) to the Python egg [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] cache: [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Errno 13] Permission denied: '/sbin/.python-eggs' [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] The Python egg cache directory is currently set to: [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] /sbin/.python-eggs [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] Perhaps your account does not have write access to this directory? You can [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] change the cache directory by setting the PYTHON_EGG_CACHE environment [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] variable to point to an accessible directory. [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] [Mon Aug 25 13:39:43 2008] [error] [client 25.30.1.65] Premature end of script headers: alarm.py remi wrote: You need to set the PYTHON_EGG_CACHE variable to /tmp for instance and that should work fine. |