Open jcteacherorg opened 8 months ago
在"requirements.txt"中加入新一行 Werkzeug==2.2.2
還是沒有成功
按下run出現以下
Traceback (most recent call last):
File "/home/runner/ChatGPT-Line-Bot-1/main.py", line 2, in
還是沒有成功
更新完“requirements.txt"後要記得按下存檔哦, 我試了之後是可以成功出現Hello World的。
Traceback (most recent call last):
File "/home/runner/ChatGPT-Line-Bot/main.py", line 1, in
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' 求救出現這種
同求問題解法
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
嗎?
按下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)