安装etiny失败
-
环境:ubuntu 8.04+postgres 8.2.6+tinyerp 4.2.2
tinyerp4.2.2一切正常运行,今天想装个web客户端
于是按官方wiki里的办法一步一步做,结果不成功
出错信息如下:user@itpc:~$ sudo easy_install tinyerp.com/download/stable/source/eTiny-1.0.tar.gz
Downloading tinyerp.com/download/stable/source/eTiny-1.0.tar.gz
Processing eTiny-1.0.tar.gz
Running eTiny-1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-yBQ6GU/eTiny-1.0/egg-dist-tmp-1AUIFv
Traceback (most recent call last):
File "/usr/bin/easy_install", line 8, in <module>
load_entry_point('setuptools==0.6c8', 'console_scripts', 'easy_install')()
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1671, in main
with_ei_usage(lambda:
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1659, in with_ei_usage
return f()
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 1675, in <lambda>
distclass=DistributionWithoutHelpCommands, **kw
File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
cmd_obj.run()
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 211, in run
self.easy_install(spec, not self.no_deps)
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 422, in easy_install
return self.install_item(None, download, tmpdir, deps, True)
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 655, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 930, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/usr/lib/python2.5/site-packages/setuptools/command/easy_install.py", line 919, in run_setup
run_setup(setup_script, args)
File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 27, in run_setup
lambda: execfile(
File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 63, in run
return func()
File "/usr/lib/python2.5/site-packages/setuptools/sandbox.py", line 29, in <lambda>
{'file':setup_script, 'name':'main'}
File "setup.py", line 2, in <module>
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg/turbogears/init.py", line 6, in <module>
from turbogears.controllers import expose, flash, validate, redirect,
File "/usr/lib/python2.5/site-packages/TurboGears-1.0.4.4-py2.5.egg/turbogears/controllers.py", line 8, in <module>
from dispatch import generic, strategy, functions
File "/usr/lib/python2.5/site-packages/PIL/init.py", line 19, in <module>File "/usr/lib/python2.5/site-packages/RuleDispatch-0.5a0.dev_r2306-py2.5-linux-i686.egg/dispatch/interfaces.py", line 1, in <module>
File "/usr/lib/python2.5/site-packages/PIL/init.py", line 3, in <module>
# $Id: init.py 2134 2004-10-06 08:55:20Z fredrik $
File "/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg/protocols/api.py", line 15, in <module>
File "/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg/protocols/adapters.py", line 32, in <module>
File "/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg/protocols/_speedups.py", line 7, in <module>
File "/usr/lib/python2.5/site-packages/PyProtocols-1.0a0dev_r2302-py2.5-linux-i686.egg/protocols/_speedups.py", line 4, in bootstrap
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 841, in resource_filename
self, resource_name
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1310, in get_resource_filename
self._extract_resource(manager, self._eager_to_zip(name))
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 1332, in _extract_resource
self.egg_name, self._parts(zip_path)
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 921, in get_cache_path
self.extraction_error()
File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 887, in extraction_error
raise err
pkg_resources.ExtractionError: Can't extract file(s) to egg cacheThe following error occurred while trying to extract file(s) to the Python egg
cache:SandboxViolation: mkdir('/home/user/.python-eggs', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.The Python egg cache directory is currently set to:
/home/user/.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. -
不用easy-install安装试试