I got this while running the selenium webdriver script in python I also set the path in System Environment and also tried downloading the webdriver that matches with my chro
The error is probably because you have used parenthesis in the resource_path variable. The code should be as following:
driver = webdriver.Chrome(resource_path="C:\webdriver\chromedriver.exe") # to open the chromebrowser
driver.get("https://web.whatsapp.com")
if still there is any problem you can try keeping the web driver in the same folder as the python file.