2012-09-11 116 views
3

我想在Heroku應用程序中使用Python的spynner模塊,但是我在使用Heroku時遇到了問題。我明顯在我的requirements.txt中有這個,這很好,即使安裝lxml沒有問題,但我遇到了PyQt4的問題。它不是在它的依賴上市,如果我手動把一份聲明中requirements.txtpyqt>=0.0.0,它並嘗試安裝它,但我總是最後出現以下錯誤:在Heroku上安裝Spynner

 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運行有任何建議?

回答

0

你在本地嘗試過嗎?我認爲這個bug與Heroku沒有任何關係。在撰寫本文時,您無法從任何地方從pip安裝pyqt。請參閱pip install PyQt IOError

+1

這是正確的,這正是問題所在,因爲據我所知,您需要使用'pip'將其安裝在Heroku上。 – jdotjdot