チュートリアル内のherokuでデプロイ時に発生するエラー
djangogirlsチュートリアル内のデプロイ!にて、
他の質問者にも同じ悩みを抱えている人がたくさんおり、自身に適用しても解決しませんでした。
発生している問題・エラーメッセージ
(myvenv) C:\Users\waito_000\djangogirl>git push heroku master Enumerating objects: 21, done. Counting objects: 100% (21/21), done. Delta compression using up to 4 threads. Compressing objects: 100% (18/18), done. Writing objects: 100% (21/21), 4.54 KiB | 136.00 KiB/s, done. Total 21 (delta 1), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: ! The latest version of Python 3.6 is python-3.6.6 (you are using python-3.6.5, which is unsupported). remote: ! We recommend upgrading by specifying the latest version (python-3.6.6). remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes remote: -----> Installing python-3.6.5 remote: -----> Installing pip remote: -----> Installing requirements with pip remote: Collecting dj-database-url==0.5.0 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 1)) remote: Downloading https://files.pythonhosted.org/packages/d4/a6/4b8578c1848690d0c307c7c0596af2077536c9ef2a04d42b00fabaa7e49d/dj_database_url-0.5.0-py2.py3-none-any.whl remote: Collecting Django==2.0.7 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 2)) remote: Downloading https://files.pythonhosted.org/packages/ab/15/cfde97943f0db45e4f999c60b696fbb4df59e82bbccc686770f4e44c9094/Django-2.0.7-py3-none-any.whl (7.1MB) remote: Collecting gunicorn==19.9.0 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 3)) remote: Downloading https://files.pythonhosted.org/packages/8c/da/b8dd8deb741bff556db53902d4706774c8e1e67265f69528c14c003644e6/gunicorn-19.9.0-py2.py3-none-any.whl (112kB) remote: Collecting pytz==2018.5 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 4)) remote: Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB) remote: Collecting whitenoise==3.3.1 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 5)) remote: Downloading https://files.pythonhosted.org/packages/0c/58/0f309a821b9161d0e3a73336a187d1541c2127aff7fdf3bf7293f9979d1d/whitenoise-3.3.1-py2.py3-none-any.whl remote: Collecting psycopg2==2.5.4 (from -r /tmp/build_56146e047039c6f1f463a4f76f70f99f/requirements.txt (line 6)) remote: Downloading https://files.pythonhosted.org/packages/63/c3/802668cb3cfc2880c2a8364623e7105a0257724a2612bb66ec733aaddb8c/psycopg2-2.5.4.tar.gz (682kB) remote: Complete output from command python setup.py egg_info: remote: running egg_info remote: creating pip-egg-info/psycopg2.egg-info remote: writing pip-egg-info/psycopg2.egg-info/PKG-INFO remote: writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt remote: writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt remote: writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt' remote: Error: could not determine PostgreSQL version from '10.4' remote: remote: ---------------------------------------- remote: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-na2q9qlf/psycopg2/ remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to kinnennnichousen. remote: To https://git.heroku.com/kinnennnichousen.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/kinnennnichousen.git'
該当のソースコード??
python3
1dj-database-url==0.5.0 2Django==2.0.7 3gunicorn==19.9.0 4pytz==2018.5 5whitenoise==3.3.1 6psycopg2==2.7.5 7
psycopg2のアップグレード、gitへのコミット、requirementsへの書き換えは行いました。
補足情報(FW/ツールのバージョンなど)
windows10
python 3.6.5
atom
git for windows
djangogirlstutorial デプロイ! https://djangogirlsjapan.gitbooks.io/workshop_tutorialjp/deploy/
回答1件
あなたの回答
tips
プレビュー