前提・実現したいこと
Python でデプロイしたいです。
発生している問題・エラーメッセージ
(myvenv) MacRyo:djangogirls ryousuke$ git push heroku master Counting objects: 24, done. Delta compression using up to 4 threads. Compressing objects: 100% (21/21), done. Writing objects: 100% (24/24), 6.18 KiB | 2.06 MiB/s, done. Total 24 (delta 2), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! The latest version of Python 3 is python-3.6.4 (you are using python-3.5.2, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.4). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.5.2 remote: -----> Installing pip remote: -----> Installing requirements with pip remote: Collecting altgraph==0.10.2 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 1)) remote: Downloading altgraph-0.10.2.tar.gz (481kB) remote: Collecting bdist-mpkg==0.5.0 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 2)) remote: Downloading bdist_mpkg-0.5.0.tar.gz remote: Collecting bonjour-py==0.3 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 3)) remote: Could not find a version that satisfies the requirement bonjour-py==0.3 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 3)) (from versions: ) remote: No matching distribution found for bonjour-py==0.3 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 3)) remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to ryocom. remote: To https://git.heroku.com/ryocom.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/ryocom.git'
デプロイするときにエラーが出てしまいます。
該当のソースコード
Python
試したこと
'''
remote: Could not find a version that satisfies the requirement bonjour-py==0.3 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 3)) (from versions: )
remote: No matching distribution found for bonjour-py==0.3 (from -r /tmp/build_3a017f09d9e3c23d02eafb794942f032/requirements.txt (line 3))
'''
ここの問題を解決するために、sudo pip install bonjour-pyをしたり
一方でrequirement.txtのbonjour-pyを削除したりみたりしましたが効果はなく
このエラーが消えません。
補足情報(FW/ツールのバージョンなど)
初心者で、Djangoを使おうと思ってデプロイしようと思っています。
Mac OS sierra 10.12.6を使ってます。
Terminalを使っています。
virtualenv上で動かしています。
Herokuを使っています。
pipもインストール済みです。
pythonはバージョン3.6.4を使っています。
よろしくお願いします