2012-03-29 17 views
6

मैं Heroku के अजगर वाली मार्गदर्शिका का पालन करने का प्रयास कर रहा हूँ, लेकिन बार-बार समस्याओं में चला रहा हूँ स्थापित करने पर असफल प्रतीत होता है। फिलहाल, "गिट पुश हेरोकू मास्टर" असफल रहा है क्योंकि यह बोनजोर स्थापित नहीं कर सकता है। किसी को भी करता है, तो यह वास्तव में आवश्यक आवश्यकता है पता है, और मैं आवश्यक संस्करण, या किसी भी तरह नहीं तो इसे ठीक बदल सकते हैं या नहीं? पुश का पूरा पाठ नीचे आता है।Heroku धक्का विफल रहता है बार-बार, Bonjour

(venv)172-26-12-64:helloflask Spike$ git push heroku master 
Counting objects: 488, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (444/444), done. 
Writing objects: 100% (488/488), 1.43 MiB, done. 
Total 488 (delta 33), reused 0 (delta 0) 

-----> Heroku receiving push 
-----> Python app detected 
-----> Preparing virtualenv version 1.7 
    New python executable in ./bin/python 
    Installing distribute.............................................................................................................................................................................................done. 
    Installing pip...............done. 
    -----> Activating virtualenv 
    -----> Installing dependencies using pip version 1.0.2 
    Downloading/unpacking Flask==0.8 (from -r requirements.txt (line 1)) 
    Creating supposed download cache at /app/tmp/repo.git/.cache/pip_downloads 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FF%2FFlask%2FFlask-0.8.tar.gz 
    Running setup.py egg_info for package Flask 

     warning: no files found matching '*' under directory 'tests' 
     warning: no previously-included files matching '*.pyc' found under directory 'docs' 
     warning: no previously-included files matching '*.pyo' found under directory 'docs' 
     warning: no previously-included files matching '*.pyc' found under directory 'tests' 
     warning: no previously-included files matching '*.pyo' found under directory 'tests' 
     warning: no previously-included files matching '*.pyc' found under directory 'examples' 
     warning: no previously-included files matching '*.pyo' found under directory 'examples' 
     no previously-included directories found matching 'docs/_build' 
     no previously-included directories found matching 'docs/_themes/.git' 
    Downloading/unpacking IMAPClient==0.8 (from -r requirements.txt (line 2)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Ffreshfoo.com%2Fprojects%2FIMAPClient%2FIMAPClient-0.8.zip 
    Running setup.py egg_info for package IMAPClient 

     no previously-included directories found matching 'doc/doctrees/' 
    Downloading/unpacking Jinja2==2.6 (from -r requirements.txt (line 3)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FJ%2FJinja2%2FJinja2-2.6.tar.gz 
    Running setup.py egg_info for package Jinja2 

     warning: no previously-included files matching '*' found under directory 'docs/_build' 
     warning: no previously-included files matching '*.pyc' found under directory 'jinja2' 
     warning: no previously-included files matching '*.pyc' found under directory 'docs' 
     warning: no previously-included files matching '*.pyo' found under directory 'jinja2' 
     warning: no previously-included files matching '*.pyo' found under directory 'docs' 
    Downloading/unpacking PIL==1.1.7 (from -r requirements.txt (line 4)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Feffbot.org%2Fmedia%2Fdownloads%2FPIL-1.1.7.tar.gz 
    Running setup.py egg_info for package PIL 
     WARNING: '' not a valid package name; please use only.-separated package names in setup.py 

    Downloading/unpacking PyRSS2Gen==1.0.0 (from -r requirements.txt (line 5)) 
    Downloading PyRSS2Gen-1.0.0.tar.gz 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPyRSS2Gen%2FPyRSS2Gen-1.0.0.tar.gz 
    Running setup.py egg_info for package PyRSS2Gen 

    Downloading/unpacking PyYAML==3.10 (from -r requirements.txt (line 6)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FP%2FPyYAML%2FPyYAML-3.10.tar.gz 
    Running setup.py egg_info for package PyYAML 

    Downloading/unpacking Twisted==11.0.0 (from -r requirements.txt (line 7)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FT%2FTwisted%2FTwisted-11.0.0.tar.bz2 
    Running setup.py egg_info for package Twisted 

    Downloading/unpacking WebOb==1.1.1 (from -r requirements.txt (line 8)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FW%2FWebOb%2FWebOb-1.1.1.zip 
    Running setup.py egg_info for package WebOb 

     no previously-included directories found matching '*.pyc' 
     no previously-included directories found matching '*.pyo' 
    Downloading/unpacking Werkzeug==0.8.3 (from -r requirements.txt (line 9)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FW%2FWerkzeug%2FWerkzeug-0.8.3.tar.gz 
    Running setup.py egg_info for package Werkzeug 

     warning: no files found matching '*' under directory 'werkzeug/debug/templates' 
     warning: no files found matching '*' under directory 'tests' 
     warning: no previously-included files matching '*.pyc' found under directory 'docs' 
     warning: no previously-included files matching '*.pyo' found under directory 'docs' 
     warning: no previously-included files matching '*.pyc' found under directory 'tests' 
     warning: no previously-included files matching '*.pyo' found under directory 'tests' 
     warning: no previously-included files matching '*.pyc' found under directory 'examples' 
     warning: no previously-included files matching '*.pyo' found under directory 'examples' 
     no previously-included directories found matching 'docs/_build' 
    Downloading/unpacking altgraph==0.7.2 (from -r requirements.txt (line 10)) 
    Downloading altgraph-0.7.2.tar.gz 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fa%2Faltgraph%2Faltgraph-0.7.2.tar.gz 
    Running setup.py egg_info for package altgraph 

     warning: no files found matching '*.txt' 
     warning: no previously-included files matching '.DS_Store' found anywhere in distribution 
     warning: no previously-included files matching '*.pyc' found anywhere in distribution 
     warning: no previously-included files matching '*.so' found anywhere in distribution 
    Downloading/unpacking apipkg==1.0 (from -r requirements.txt (line 11)) 
    Downloading apipkg-1.0.tar.gz 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fa%2Fapipkg%2Fapipkg-1.0.tar.gz 
    Running setup.py egg_info for package apipkg 

     no previously-included directories found matching '.svn' 
     no previously-included directories found matching '.hg' 
    Downloading/unpacking bdist-mpkg==0.4.4 (from -r requirements.txt (line 12)) 
    Downloading bdist_mpkg-0.4.4.tar.gz 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fa.pypi.python.org%2Fpackages%2Fsource%2Fb%2Fbdist_mpkg%2Fbdist_mpkg-0.4.4.tar.gz 
    Running setup.py egg_info for package bdist-mpkg 

    Downloading/unpacking beautifulsoup4==4.0.1 (from -r requirements.txt (line 13)) 
    Storing download in cache at /app/tmp/repo.git/.cache/pip_downloads/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2Fb%2Fbeautifulsoup4%2Fbeautifulsoup4-4.0.1.tar.gz 
    Running setup.py egg_info for package beautifulsoup4 

    Downloading/unpacking bonjour-py==0.3 (from -r requirements.txt (line 14)) 
    Could not find any downloads that satisfy the requirement bonjour-py==0.3 (from -r requirements.txt (line 14)) 
    No distributions at all found for bonjour-py==0.3 (from -r requirements.txt (line 14)) 
    Storing complete log in /app/.pip/pip.log 
!  Heroku push rejected, failed to compile Python app 

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

उत्तर

6

आप त्वरित प्रारंभ से उदाहरण ऐप धक्का करने की कोशिश कर रहे हैं? आप जिन आवश्यकताओं को स्थापित करने का प्रयास कर रहे हैं उनमें से कई आवश्यक नहीं हैं।

मुझे लगता है कि आप अपनी आवश्यकताओं की सिफारिश की virtualenv के बाहर फ़ाइल, और कहा कि मुड़ और Bonjour-py हैं संकुल आपके सिस्टम अजगर स्थापना में स्थापित बनाया।

+0

हाँ यह है कि क्या यह पता चला होने के लिए (जैसा कि हम चहचहाना पर के बारे में बातचीत) – spikem

2

आपकी आवश्यकताओं.txt फ़ाइल में bonjour-py क्यों है? इसे हटाने से आपकी समस्या ठीक होनी चाहिए।

इसके अलावा, मैं इसे या तो स्थापित करने के लिए नहीं कर पा रहे, तो यह कोई आश्चर्य नहीं Heroku वहाँ विफल रहता है।

(so)modocache $ pip install bonjour-py 
Downloading/unpacking bonjour-py 
    Could not find any downloads that satisfy the requirement bonjour-py 
No distributions at all found for bonjour-py 
Storing complete log in /Users/modocache/.pip/pip.log 
8

शायद तुम एक आभासी वातावरण होगा शायद पहली जरूरत

source venv/bin/activate 
के लिए प्रयोग कर रहे हैं और आप बस इसे

सक्रिय करने के लिए इस मामले में, कैसे आप अपने प्रोजेक्ट में आभासी वातावरण संग्रहीत के आधार पर भूल गया, आप

और कहा कि फ्रीज के बाद अपनी आवश्यकताओं

pip freeze > requirements.txt 

अंत में

git push heroku master 
+1

इस प्रतिक्रिया के बाद से थोड़ी देर गया है, लेकिन तुम सिर्फ मुझे इतना मुसीबत धन्यवाद बचाया, है !! – SMT

0

मैं आमतौर पर कुछ परियोजना उनके requirements.txt में bonjour-py संदर्भित के साथ एक ही मुद्दा था, जो या ट्रैक करने का तरीका इस समय है कि एक नहीं पता था।

और किसी ने मुझे बताया कि pip-tool। यह वास्तव में आपके पास पहचानने का एक शानदार विकल्प है, और यदि आप उन्हें अपडेट करना चाहते हैं। और एक बोनस के रूप में यह अच्छी तरह से bonjour-py त्रुटि को नजरअंदाज कर दिया।

संबंधित मुद्दे