我正在尝试在Heroku应用程序中使用Python的spynner模块,但在Heroku上运行时遇到了问题。显然,我的requirements.txt中有它,这很好,即使安装lxml也没有问题,但我在使用PyQt4时遇到了问题。它没有在它的依赖项中列出,如果我像pyqt>=0.0.0一样手动在requirements.txt中放入一条语句,它确实会尝试安装它,但我总是会得到以下错误:
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运行有什么建议?
发布于 2013-02-14 19:14:33
你在本地试过了吗?我不认为这个bug和Heroku有任何关系。在撰写本文时,您还不能从pip任何地方安装pyqt。请参阅pip install PyQt IOError
https://stackoverflow.com/questions/12365405
复制相似问题