wechaty / python-wechaty

Python Wechaty is a Conversational RPA SDK for Chatbot Makers written in Python
https://wechaty.readthedocs.io/zh_CN/latest/
Apache License 2.0
1.55k stars 229 forks source link

[Bug]: ImportError: cannot import name 'get_host' from 'urllib3' #408

Closed angeljanne closed 1 year ago

angeljanne commented 1 year ago

Environment

- wechaty:
- wechaty-puppet: 
- wechaty-puppet-service: 
- wechaty-plugin-contrib: 
- token type: padlocal|wxwork|xp
- the version of wechaty docker container: [0.65]

Description

new python project. just from wechaty import Wechaty. 

cannot import name 'get_host' from 'urllib3' (c:\Users\dongh\Desktop\IQIP\.venv\Lib\site-packages\urllib3\__init__.py)
  File "C:\Users\dongh\Desktop\IQIP\bot.py", line 1, in <module>
    from wechaty import Wechaty, WechatyOptions
ImportError: cannot import name 'get_host' from 'urllib3' (c:\Users\dongh\Desktop\IQIP\.venv\Lib\site-packages\urllib3\__init__.py)

Minimum reproducible code

from wechaty import Wechaty

bestK commented 1 year ago
pip uninstall urllib3
pip install urllib3==1.26.6