2

Macbook (OS X 10.6.8) にパッケージ (splinter) をインストールしようとしていますが、最大再帰エラーが発生し続けます。それらは、「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、2.7.2setuptools.distutils.__version__です。

奇妙なことに__file__、setuptools モジュールの は 2.6 のインストール ディレクトリの下にありますが、setuptools.disutils のモジュールは 2.7 のインストール ディレクトリの下にあります。

この問題は、2.7 のインストールまたは依存モジュール (コンピューターには 2.6 がインストールされていた) の微妙なエラーであると思われますが、一生問題を理解することはできません。

4

1 に答える 1

2

Python 2.7をインストールするには、Distributeまたはsetuptools(コマンドの2つのソース)の別のバージョンをインストールする必要があります。easy_install各Pythonインスタンスには独自のインスタンスが必要です。10.6のApple提供のシステムPythonには、Apple提供のパッケージに独自のeasy_installパッケージが含まれています。インストールしたPython2.7には自動的には付属していません。トレースバックで、Python 2.7から始めて、2.6から始める方法に注目してください。PYTHONPATHでPythonバージョンを混在させないでください!/usr/binsetuptoolssetuptools

于 2011-10-15T21:21:45.377 に答える