Open Easen-L opened 6 months ago
You can try to reduce its version to below 2.0. Use command like pip install "urllib3<2.0.0".
Understood, thank you
I tried lowering the version, got new problem:
Traceback (most recent call last):
File "D:\QWEN\main.py", line 31, in
from urllib.parse import urlparse def get_host(url: str) -> (str, str, str): parsed_url = urlparse(url) return parsed_url.scheme, parsed_url.netloc, parsed_url.path import urllib3 urllib3.get_host = get_host
I tried lowering the version, got new problem: Traceback (most recent call last): File "D:\QWEN\main.py", line 31, in from wechaty import Wechaty File "D:\QWEN\venv\Lib\site-packages\wechatyinit.py", line 54, in from .wechaty import ( File "D:\QWEN\venv\Lib\site-packages\wechaty\wechaty.py", line 111, in @DataClass ^^^^^^^^^ File "C:\Users\Writer's Cave\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1220, in dataclass return wrap(cls) ^^^^^^^^^ File "C:\Users\Writer's Cave\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 1210, in wrap return _process_class(cls, init, repr, eq, order, unsafe_hash, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Writer's Cave\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 958, in _process_class cls_fields.append(_get_field(cls, name, type, kw_only)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Writer's Cave\AppData\Local\Programs\Python\Python311\Lib\dataclasses.py", line 815, in _get_field raise ValueError(f'mutable default {type(f.default)} for field ' ValueError: mutable default <class 'wechaty_puppet.schemas.puppet.PuppetOptions'> for field puppet_options is not allowed: use default_factory
Can you fix it?
Environment
Description
Minimum reproducible code