3

我正在尝试spynner在 Heroku 应用程序中使用 Python 的模块,但我无法让它在 Heroku 上运行。我显然有它,requirements.txt这很好,即使安装lxml没有问题,但我遇到了 PyQt4 的问题。它没有在其依赖项中列出,如果我手动在requirements.txtlike中添加语句pyqt>=0.0.0,它会尝试安装它,但我总是会出现以下错误:

       Downloading/unpacking pyqt>=0.0.0 (from -r requirements.txt (line 12))
         Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/htt
p%3A%2F%2Fwww.riverbankcomputing.com%2Fstatic%2FDownloads%2FPyQt4%2FPyQt-x11-gpl
-4.9.4.tar.gz
         Running setup.py egg_info for package pyqt
           Traceback (most recent call last):
             File "<string>", line 14, in <module>
           IOError: [Errno 2] No such file or directory: '/tmp/build_11i9jfrncqa
t2/.heroku/venv/build/pyqt/setup.py'
           Complete output from command python setup.py egg_info:
           Traceback (most recent call last):

         File "<string>", line 14, in <module>

       IOError: [Errno 2] No such file or directory: '/tmp/build_11i9jfrncqat2/.
heroku/venv/build/pyqt/setup.py'

       ----------------------------------------
       Command python setup.py egg_info failed with error code 1 in /tmp/build_1
1i9jfrncqat2/.heroku/venv/build/pyqt
       Storing complete log in /app/.pip/pip.log
 !     Heroku push rejected, failed to compile Python app

无论我做什么,甚至尝试手动heroku run easy_install xxx使用一些 PyQt4 发行版,它都无法正常工作。有人对如何让 spynner 运行有任何建议吗?

4

1 回答 1

0

你在本地试过吗?我不认为这个错误与 Heroku 有任何关系。在撰写本文时,您无法在任何地方从 pip 安装 pyqt。请参阅pip install PyQt IOError

于 2013-02-14T11:14:33.057 回答