我正在尝试在 Macbook(OS X 10.6.8)上安装一个包(碎片),但我不断收到最大的递归错误。无论我使用“setup.py install”还是“pip install”,以及尝试进行全局安装还是使用 virtualenv,它们都会发生。它们发生在 Python 2.7.1 和 2.7.2 下。它们发生在我用船做时,当我用山羊做时它们发生。
请注意,似乎没有其他人对 splinter 包有此问题。
我回溯的循环位:
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 177, in run
self.find_sources()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 330, in add_defaults
sdist.add_defaults(self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/sdist.py", line 264, in add_defaults
for pkg, src_dir, build_dir, filenames in build_py.data_files:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 39, in __getattr__
self.data_files = files = self._get_data_files(); return files
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 44, in _get_data_files
self.analyze_manifest()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 92, in analyze_manifest
self.run_command('egg_info')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
我的 Python 路径:
/Users/gimli/Work/LocalSystemGimli/troubleshooting/splinter_install
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.0-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.6.4-py2.7.egg
/Users/gimli/Work/LocalSystemGimli/troubleshooting/splinter_install
/opt/local/www
/opt/local/www/swage_block/libraries/django_tastypie
/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/Library/Python/2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/lxml-2.3-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/python_dateutil-1.5-py2.6.egg
/Library/Python/2.6/site-packages/python_digest-1.7-py2.6.egg
/Library/Python/2.6/site-packages/simplejson-2.1.6-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages
/Library/Python/2.6/site-packages/mimeparse-0.1.3-py2.6.egg-info
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python
pip.log 有很多很多很多警告“警告:manifest_maker:未找到标准文件'-c'”。
setuptools.__version__
是 0.6c9,setuptools.distutils.__version__
是 2.7.2。
奇怪的__file__
是,setuptools 模块在 2.6 的安装目录下,而 setuptools.disutils 的在 2.7 安装目录下。
我怀疑问题是我安装 2.7 或某些依赖模块(计算机附带安装了 2.6)时出现的一些细微错误,但我无法终生解决问题。