0

命令后我收到一些错误消息:

   curl -sk https://cloud.github.com/downloads/square/PonyDebugger/bootstrap-ponyd.py | \
  python - --ponyd-symlink=/usr/local/bin/ponyd ~/Library/PonyDebugger

这是我的终端告诉我,

Overwriting /Users/hokila/Library/PonyDebugger/lib/python2.7/orig-prefix.txt with new content
New python executable in /Users/hokila/Library/PonyDebugger/bin/python
Traceback (most recent call last):
  File "<stdin>", line 2462, in <module>
  File "<stdin>", line 944, in main
  File "<stdin>", line 1045, in create_environment
  File "<stdin>", line 1361, in install_python
  File "<stdin>", line 435, in copyfile
  File "<stdin>", line 412, in copyfileordir
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 128, in copy2
    copyfile(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 83, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 2] No such file or directory: '/Users/hokila/Library/PonyDebugger/.Python'

似乎是python版本错误,所以我将我的python更新到2.7.3。然后我仍然遇到同样的错误。我该如何解决这个问题?

4

1 回答 1

0

这个问题也发生在我身上,我几乎绝望了。我重新安装了 Python 2.7.2,它运行良好。在使用 README_ponyd.rst 中的说明之前,我尝试手动解决此问题,并且我也部分成功:

开发安装``````````````````````

如果您已经签出 PonyDebugger git repo,您​​可以手动设置 virtualenv 并将您的 ponyd 安装指向您现有的签出。为了演示,我们假设$VENV设置为您的预期安装路径并$PONYDEBUGGER_PATH设置为您的 PonyDebugger git checkout::

# 如果你还没有安装 virtualenv
sudo easy_install virtualenv

虚拟环境“$VENV”

源“$VENV/bin/激活”

pip install -e "$PONYDEBUGGER_PATH"

# 确保你的 shell 知道 ponyd 存在 hash -r

要运行这个小马,您可以通过激活您的环境source "$VENV/bin/activate"并将ponyd其添加到您的路径中。您也可以直接调用它,$VENV/bin/ponyd而无需先激活。

您应该先安装virtualenv。您可以尝试将这两个步骤结合起来。希望能帮助到你...

于 2013-07-10T08:40:26.003 回答