Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

解决使用 python312版本 时的诸多报错#814

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ZHHUAZH wants to merge1 commit intojhao104:master
base:master
Choose a base branch
Loading
fromZHHUAZH:update2Py312

Conversation

@ZHHUAZH
Copy link

1.from imp import reload as reload_six ModuleNotFoundError: No module named 'imp' 解决方法:if PY3: import importlib reload_six = importlib.reload else: reload_six = reload

2.from collections import MutableMapping ImportError: cannot import name 'MutableMapping' from 'collections' 解决方法:from collections.abc import MutableMapping

3.from collections import Iterable, Mapping ImportError: cannot import name 'Iterable' from 'collections' 解决方法:from collections.abc import Iterable, Mapping

from .packages.six.moves.http_client import ( ModuleNotFoundError: No module named 'urllib3.packages.six.moves' 解决方法:更新urllib3包到最新版本

*** 执行 python proxyPool.py server 也会报好多错: ***

1.from jinja2 import Markup, escape ImportError: cannot import name 'Markup' from 'jinja2' 解决方法:改成 from jinja2 import pass_eval_context from markupsafe import Markup, escape

2.from itsdangerous import json as _json ImportError: cannot import name 'json' from 'itsdangerous' 解决方法:改成 import json as _json

3.from collections import MutableMapping ImportError: cannot import name 'MutableMapping' from 'collections' 解决方法:改成 from collections.abc import MutableMapping

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@xiaokong520xiaokong520xiaokong520 approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@ZHHUAZH@xiaokong520

[8]ページ先頭

©2009-2025 Movatter.jp