TheExplainthis / ChatGPT-Line-Bot

This is a repository that allows you to integrate ChatGPT into Line.
MIT License
1.57k stars 1.9k forks source link

求救:按下RUN之後沒有出現Hello World #58

Open jcteacherorg opened 8 months ago

jcteacherorg commented 8 months ago

按下RUN之後沒有出現Hello World

出現下面這些 Traceback (most recent call last): File "/home/runner/ChatGPT-Line-Bot/main.py", line 2, in from flask import Flask, request, abort File "/home/runner/ChatGPT-Line-Bot/.pythonlibs/lib/python3.10/site-packages/flask/init.py", line 5, in from .app import Flask as Flask File "/home/runner/ChatGPT-Line-Bot/.pythonlibs/lib/python3.10/site-packages/flask/app.py", line 30, in from werkzeug.urls import url_quote ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/runner/ChatGPT-Line-Bot/.pythonlibs/lib/python3.10/site-packages/werkzeug/urls.py)

Vincentman5690 commented 8 months ago

在"requirements.txt"中加入新一行 Werkzeug==2.2.2

kaipenguin commented 8 months ago

還是沒有成功

kaipenguin commented 8 months ago

按下run出現以下

Traceback (most recent call last): File "/home/runner/ChatGPT-Line-Bot-1/main.py", line 2, in from flask import Flask, request, abort File "/home/runner/ChatGPT-Line-Bot-1/.pythonlibs/lib/python3.10/site-packages/flask/init.py", line 5, in from .app import Flask as Flask File "/home/runner/ChatGPT-Line-Bot-1/.pythonlibs/lib/python3.10/site-packages/flask/app.py", line 30, in from werkzeug.urls import url_quote ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/runner/ChatGPT-Line-Bot-1/.pythonlibs/lib/python3.10/site-packages/werkzeug/urls.py)

only18days commented 7 months ago

還是沒有成功

更新完“requirements.txt"後要記得按下存檔哦, 我試了之後是可以成功出現Hello World的。

neymant commented 3 months ago

Traceback (most recent call last): File "/home/runner/ChatGPT-Line-Bot/main.py", line 1, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' 求救出現這種

AngChenWu commented 2 months ago

Traceback (most recent call last): File "/home/runner/ChatGPT-Line-Bot/main.py", line 1, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' 求救出現這種

同求問題解法

only18days commented 1 month ago

Traceback (most recent call last): File "/home/runner/ChatGPT-Line-Bot/main.py", line 1, in from dotenv import load_dotenv ModuleNotFoundError: No module named 'dotenv' 求救出現這種

@neymant @AngChenWu 有確認過 “requirements.txt" 中有寫到 python-dotenv==0.21.1 嗎?