您好我有Problem solved here simplar之类的问题,但只有我的名为isbntools的软件包。如果我试图制作
python setup.py install
在提取的isbntools的目录中我得到错误,它找不到一些包含。有没有人试图在SUSE SLES13.1上进行easy_install? 日志:
:~> sudo easy_install isbntools
root's password:
Searching for isbntools
Reading https://pypi.python.org/simple/isbntools/
Best match: isbntools 4.2.4
Downloading https://pypi.python.org/packages/source/i/isbntools/isbntools-4.2.4.tar.gz#md5=3bee22a3b30d247ca51a5bfadfe5a42d
Processing isbntools-4.2.4.tar.gz
Writing /tmp/easy_install-g01nzx/isbntools-4.2.4/setup.cfg
Running isbntools-4.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-g01nzx/isbntools-4.2.4/egg-dist-tmp-3i8ma7
error: Setup script exited with error: SandboxViolation: mkdir('/home/wschrabi/.isbntools', 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.
添加:我尝试了选项1)并出现以下错误:
si204alt:/home/wschrabi/__SAMBA/ISBN_PY # easy_install --user isbntools-4.2.4
Processing isbntools-4.2.4
Writing /home/wschrabi/samba/ISBN_PY/isbntools-4.2.4/setup.cfg
Running setup.py -q bdist_egg --dist-dir /home/wschrabi/samba/ISBN_PY/isbntools-4.2.4/egg-dist-tmp-uHR4xe
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==16.0', 'console_scripts', 'easy_install')()
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 2243, in main
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 380, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 610, in easy_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 659, in install_item
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 842, in install_eggs
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1070, in build_and_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1056, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 240, in run_setup
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 164, in save_modules
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 139, in resume
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 152, in save_modules
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 237, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 267, in run
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 236, in runner
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 46, in _execfile
File "/home/wschrabi/samba/ISBN_PY/isbntools-4.2.4/setup.py", line 59, in <module>
CONFRES = pkg_resources.resource_filename('isbntools', CONFFILE)
NameError: name 'pkg_resources' is not defined
当我选择4)时 - 它确实有效,但却出现了错误。
wschrabi@si204alt:~/__SAMBA/ISBN_PY> ./isbn meta 9999999999 endnote
sh: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
sh: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
sh: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
sh: symbol lookup error: /lib64/libncurses.so.5: undefined symbol: _nc_outch_sp
%0 Book
%T En bok om Albo härad och Albo härads hembygdsförening
%A Nsa
%@ 9999999999
%D 2004
%I Albo härads hembygdsförening
wschrabi@si204alt:~/__SAMBA/ISBN_PY>
此外,我按 No module named pkg_resources中所述重新安装了设置工具,但现在在2台差异SUSE PC(!)上获得了相同的MemoryError:
lmschrabmair@si204:~> easy_install --user ISBN_PY/isbntools-4.2.4.tar.gz
Processing isbntools-4.2.4.tar.gz
Writing /tmp/easy_install-tB6gBa/isbntools-4.2.4/setup.cfg
Running isbntools-4.2.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tB6gBa/isbntools-4.2.4/egg-dist-tmp-2jiuVg
Traceback (most recent call last):
File "/usr/local/bin/easy_install", line 9, in <module>
load_entry_point('setuptools==16.0', 'console_scripts', 'easy_install')()
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 2243, in main
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command
cmd_obj.run()
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 380, in run
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 610, in easy_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 659, in install_item
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 842, in install_eggs
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1070, in build_and_install
File "build/bdist.linux-x86_64/egg/setuptools/command/easy_install.py", line 1056, in run_setup
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 240, in run_setup
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 193, in setup_context
File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 152, in save_modules
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 126, in __exit__
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
File "build/bdist.linux-x86_64/egg/setuptools/sandbox.py", line 110, in dump
MemoryError
lmschrabmair@si204:~>
我认为这是一个新错误:请参阅BUG in Setupt tools
答案 0 :(得分:1)
isbntools 安装程序尝试在您的用户区域中创建目录(以放入配置和缓存文件)。 easy_install 不允许在某些Linux发行版上进行系统安装。
所以你有这些选择:
跟进你的问题:
为什么不尝试选项2)?