質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
参照

参照は、プログラミングにおいて変数や関数といったメモリ空間上での所在を指示するデータのことを指します。その中にはデータ自体は含まれず、他の場所にある情報を間接的に指示するプログラムです。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

パス

パス(path)はファイルシステムの場所(階層)を明示したものです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

Q&A

0回答

1345閲覧

Heroku:pythonのバージョンの不整合によりデプロイできない

dbrow

総合スコア18

参照

参照は、プログラミングにおいて変数や関数といったメモリ空間上での所在を指示するデータのことを指します。その中にはデータ自体は含まれず、他の場所にある情報を間接的に指示するプログラムです。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

パス

パス(path)はファイルシステムの場所(階層)を明示したものです。

Python

Pythonは、コードの読みやすさが特徴的なプログラミング言語の1つです。 強い型付け、動的型付けに対応しており、後方互換性がないバージョン2系とバージョン3系が使用されています。 商用製品の開発にも無料で使用でき、OSだけでなく仮想環境にも対応。Unicodeによる文字列操作をサポートしているため、日本語処理も標準で可能です。

0グッド

0クリップ

投稿2020/05/06 06:42

編集2020/05/17 05:37

実現したいこと

Herokuへのデプロイ:pythonのバージョンが正しく認識されない。

発生している問題・エラーメッセージ

herokuに対応しているバージョンのpythonをインストールしたものの、以前のバージョンが認識されている。

equested runtime (Python 3.7.4) is not available for this stack (heroku-18).

原因

パスの設定?

エラーメッセージ

remote: -----> Creating chromedriver export scripts... remote: -----> Python app detected remote: ! Requested runtime (Python 3.7.4) is not available for this stack (heroku-18). remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to agile-tundra-98261. remote: To https://git.heroku.com/agile-tundra-98261.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/agile-tundra-98261.git'

試したこと

・(https://devcenter.heroku.com/articles/python-support#supported-runtimes)を参照して、
対応しているバージョンのpythonをpyenv経由でインストール
・バージョンの確認

$ python --version Python 3.8.2

・その上でruntime.txtの書き換え

ディレクトリ構造

・Aまで移動、A以下の構造は以下の通り
A/
├ main.py/
├ Procfile/
├ Requirements.txt/
├ Runtime.txt/

runtime.txt

python-3.8.2

試したこと2

・gitinitから再度実行

結果

ERROR: Could not find a version that satisfies the requirement clyent==1.2.2 (from -r /tmp/build_a70704366f1d4dd5b1a76e88e8b511be/requirements.txt (line 32)) (from versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.2, 0.3.3, 0.3.4, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1) remote: ERROR: No matching distribution found for clyent==1.2.2 (from -r /tmp/build_a70704366f1d4dd5b1a76e88e8b511be/requirements.txt (line 32)) remote: ! Push rejected, failed to compile Python app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to agile-tundra-98261. remote: To https://git.heroku.com/agile-tundra-98261.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/agile-tundra-98261.git'

その他

・3.8.2はhomebrewを用いてインストールしたが、3.7.4はanacondaを用いてインストールした(はず)
・ローカル環境での動作は確認済み

宜しくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問