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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZHHUAZH
Copy link

@ZHHUAZH ZHHUAZH commented Dec 29, 2024

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 free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant