2013-07-16 141 views
1

我已經使用「Flask」python框架創建了一個python應用程序。我用下面的文檔https://devcenter.heroku.com/articles/pythonheroku推送被拒絕,未能編譯Python應用程序

當我運行此:

git push heroku master

力推的Heroku之後,我發現了以下錯誤。

Counting objects: 8, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (4/4), done. 
Writing objects: 100% (8/8), 1.62 KiB, done. 
Total 8 (delta 0), reused 0 (delta 0) 

-----> Python app detected 
-----> No runtime.txt provided; assuming python-2.7.4. 
-----> Preparing Python runtime (python-2.7.4) 
-----> Installing Distribute (0.6.36) 
-----> Installing Pip (1.3.1) 
-----> Installing dependencies using Pip (1.3.1) 
     Downloading/unpacking BeautifulSoup==3.2.1 (from -r requirements.txt (line 1)) 
     Downloading BeautifulSoup-3.2.1.tar.gz 
     Running setup.py egg_info for package BeautifulSoup 

     Downloading/unpacking CDApplet==1.0 (from -r requirements.txt (line 2)) 
     Could not find any downloads that satisfy the requirement CDApplet==1.0 (from -r requirements.txt (line 2)) 
     No distributions at all found for CDApplet==1.0 (from -r requirements.txt (line 2)) 
     Storing complete log in /app/.pip/pip.log 

!  Push rejected, failed to compile Python app 

To [email protected]:frozen-brushlands-5131.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:frozen-brushlands-5131.git' 

任何幫助表示讚賞。

回答

1

看起來好像沒有名爲CDApplet的Python包。當您的Heroku應用程序嘗試安裝CDApplet時,它會失敗並且會出現此錯誤。

我在本地嘗試過,無法找到名爲CDApplet的Python包。

1

我遇到了同樣的錯誤,請嘗試刪除相關的依賴項(或添加一個正確的名稱)。 之後,做: git add .

git commit -m "commit-message" 
git push heroku master 

你應該準備好走了。

0

我有同樣的問題,固定

git add * 
git commit -m "initial commit" 
git push heroku master 

我希望這會幫助你的。

相關問題