J'ai créé mon premier chatbot avec la bibliothèque Chatterbot. Maintenant, je veux le déployer à travers Heroku, mais c'est impossible.Déploiement de l'application Python sur Heroku
Mon chatbot est composé de quelques fichiers (py, csv, yml, json, txt). C'est la structure:
botusers (fichier csv)
Magghy (fichier py)
magghybot (fichier py)
Procfile
Exigences (fichier txt)
telegramtoken (fichier txt)
conversation. YML (dans le dossier nommé lang)
math_words.json (dans le dossier nommé lang)
J'ai créé un "Procfile" (travailleur: magghybot.py python) Et « Requirements.txt »
Puis, je crée mon profil Heroku et j'ai essayé de déployer mon projet, mais sur le terminal je ce problème:
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (13/13), 5.22 KiB | 0 bytes/s, done.
Total 13 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://codon-buildpacks.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to magghy.
remote:
To https://git.heroku.com/magghy.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/magghy.git'
Qu'est-ce que je manque?
Avez-vous spécifié l'exécution de Python? Voir [ici] (https://devcenter.heroku.com/articles/python-runtimes) pour plus de détails. –
Merci beaucoup !!! J'ai résolu ce problème :) – Adryr83
Glad it helps :) –