Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcteacherorg opened this issue Feb 19, 2024 · 7 comments
Open

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

jcteacherorg opened this issue Feb 19, 2024 · 7 comments

Comments

@jcteacherorg
Copy link

按下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
Copy link

Vincentman5690 commented Feb 20, 2024

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

@kaipenguin
Copy link

還是沒有成功

@kaipenguin
Copy link

按下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
Copy link

還是沒有成功

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

@neymant
Copy link

neymant commented Aug 2, 2024

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
Copy link

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
Copy link

only18days commented Oct 1, 2024

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 嗎?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants