Heroku push fails repeatedly, appears to fail on installing Bonjour

前端 未结 4 1517
既然无缘
既然无缘 2020-12-19 05:06

I\'m attempting to follow Heroku\'s python quickstart guide but am running into repeated problems. At the moment, \"git push heroku master\" is failing because it cannot ins

相关标签:
4条回答
  • 2020-12-19 05:39

    I usually had same issue with some project referencing bonjour-py in their requirements.txt, didn't know which or how to track that one at the moment.

    And someone told me that pip-tool. It's actually a great alternative to identify which you have, and if you want to update them. And as a bonus it ignored well the bonjour-py error.

    0 讨论(0)
  • 2020-12-19 05:45

    Are you trying to push the example app from the quickstart? Many of the requirements you're trying to install aren't required at all.

    I suspect that you created your requirements file outside of the recommended virtualenv, and that twisted and bonjour-py are packages install in your system python installation.

    0 讨论(0)
  • 2020-12-19 05:54

    Maybe you are using a virtual environment and you just forgot to activate it

    In this case, depending on how you stored the virtual environment in your project, you will probably first need to

    source venv/bin/activate
    

    and after that freeze your requirements

    pip freeze > requirements.txt
    

    finally

    git push heroku master
    
    0 讨论(0)
  • 2020-12-19 05:56

    Why is bonjour-py in your requirements.txt file? Removing it should fix your problem.

    Furthermore, I can't seem to install it either, so it's no wonder Heroku fails there.

    (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
    
    0 讨论(0)
提交回复
热议问题