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

ModuleNotFoundError: No module named 'exceptions' #29

Open
Gyxqq opened this issue Nov 22, 2023 · 3 comments
Open

ModuleNotFoundError: No module named 'exceptions' #29

Gyxqq opened this issue Nov 22, 2023 · 3 comments

Comments

@Gyxqq
Copy link

Gyxqq commented Nov 22, 2023

Traceback (most recent call last):
File "e:\projects\Claude2-PyAPI\bot.py", line 2, in
from claude_api import Client
File "e:\projects\Claude2-PyAPI\claude_api.py", line 9, in
import docx
File "E:\prgramfiles\python3\lib\site-packages\docx.py", line 30, in
from exceptions import PendingDeprecationWarning
ModuleNotFoundError: No module named 'exceptions'是什么问题

@roaringmyshallowwater
Copy link

pip install python-docx

@2922832737C
Copy link

(claude) will@will-ubuntu:~/Claude2-PyAPI$ python3 claude_flask.py
Traceback (most recent call last):
File "/home/will/Claude2-PyAPI/claude_flask.py", line 2, in
from flask import Flask, request, jsonify
File "/home/will/.local/lib/python3.10/site-packages/flask/init.py", line 5, in
from .app import Flask as Flask
File "/home/will/.local/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/will/.local/lib/python3.10/site-packages/werkzeug/urls.py)
我在win11环境下运行没有问题,但是在服务器上就有这个问题

@LeeHaoRanRan
Copy link

(claude) will@will-ubuntu:~/Claude2-PyAPI$ python3 claude_flask.py Traceback (most recent call last): File "/home/will/Claude2-PyAPI/claude_flask.py", line 2, in from flask import Flask, request, jsonify File "/home/will/.local/lib/python3.10/site-packages/flask/init.py", line 5, in from .app import Flask as Flask File "/home/will/.local/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/will/.local/lib/python3.10/site-packages/werkzeug/urls.py) 我在win11环境下运行没有问题,但是在服务器上就有这个问题

pip install typed-argument-parser或许会解决问题

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

4 participants