在Heroku上安装Spynner

时间:2012-09-11 08:11:03

标签: python heroku pyqt spynner

我正在尝试在Heroku应用程序中使用Python的spynner模块,但是我在使用Heroku时遇到了麻烦。我显然在我的requirements.txt中有它,这很好,甚至安装lxml没有问题,但我遇到了PyQt4的问题。它没有在其依赖项中列出,如果我在requirements.txt 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

无论我做什么,即使尝试使用PyQt4发行版手动heroku run easy_install xxx,它也无法运行。有没有人对如何让spynner运行有任何建议?

1 个答案:

答案 0 :(得分:0)

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