NathanDuma / LinkedIn-Easy-Apply-Bot

Automate LinkedIn Easy Apply job applications and answer application-specific questions.
223 stars 84 forks source link

cannot import name 'Mapping' from 'collections' (C:\Python310\lib\collections\__init__.py) #54

Open foftycent opened 1 year ago

foftycent commented 1 year ago

Hey, has anyone ever seen this error before? It seems like it's an issue on the module iteself. I'm running from pycharm in windows, would that cause a problem because it has to be on ubuntu on conda ?

Traceback (most recent call last): File "C:\Users***\Downloads\LinkedIn-Easy-Apply-Bot-master (1)\LinkedIn-Easy-Apply-Bot-master\main.py", line 4, in from webdriver_manager.chrome import ChromeDriverManager File "C:\Python310\lib\site-packages\webdriver_manager\chrome.py", line 4, in from webdriver_manager.core.download_manager import DownloadManager File "C:\Python310\lib\site-packages\webdriver_manager\core\download_manager.py", line 3, in from webdriver_manager.core.http import WDMHttpClient File "C:\Python310\lib\site-packages\webdriver_manager\core\http.py", line 1, in import requests File "C:\Python310\lib\site-packages\requests__init.py", line 58, in from . import utils File "C:\Python310\lib\site-packages\requests\utils.py", line 26, in from .compat import parse_http_list as _parse_list_header File "C:\Python310\lib\site-packages\requests\compat.py", line 7, in from .packages import chardet File "C:\Python310\lib\site-packages\requests\packages__init.py", line 3, in from . import urllib3 File "C:\Python310\lib\site-packages\requests\packages\urllib3\init__.py", line 13, in from .connectionpool import ( File "C:\Python310\lib\site-packages\requests\packages\urllib3\connectionpool.py", line 38, in from .response import HTTPResponse File "C:\Python310\lib\site-packages\requests\packages\urllib3\response.py", line 5, in from ._collections import HTTPHeaderDict File "C:\Python310\lib\site-packages\requests\packages\urllib3_collections.py", line 1, in from collections import Mapping, MutableMapping ImportError: cannot import name 'Mapping' from 'collections' (C:\Python310\lib\collections\init__.py)

Process finished with exit code 1

secretgrampuh commented 1 year ago

Looks like maybe collections is out of date on your computer? Here's a similar error: https://stackoverflow.com/questions/69381312/in-vs-code-importerror-cannot-import-name-mapping-from-collections

The top answer says just add ".abc" on the end of collections and it will fix it... Others make it sound like it's a python 3.9 vs 3.10 thing. I think I'm running 3.7 and it's all been gravy on my end.

I think some ppl have reverted to 3.7 for this reason, compatibility issues.