Peng-YM / LeetCode-Anki

Beat LeetCode with the Power of Anki.
GNU General Public License v3.0
226 stars 31 forks source link

urllib issue #15

Open arasouli91 opened 7 months ago

arasouli91 commented 7 months ago

PS C:\Users\v-arasouli\Downloads\LeetCode-Anki-master\LeetCode-Anki-master> python3 main.py
Traceback (most recent call last): File "C:\Users\v-arasouli\Downloads\LeetCode-Anki-master\LeetCode-Anki-master\main.py", line 2, in from crawler import LeetCodeCrawler File "C:\Users\v-arasouli\Downloads\LeetCode-Anki-master\LeetCode-Anki-master\crawler.py", line 7, in import requests File "C:\Users\v-arasouli\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests__init.py", line 43, in import urllib3 File "C:\Users\v-arasouli\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\init__.py", line 7, in from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, connection_from_url File "C:\Users\v-arasouli\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 11, in from .exceptions import ( File "C:\Users\v-arasouli\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\exceptions.py", line 2, in from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

zerone0x commented 2 months ago

You need to run the script on python virtual environment