Skip to content

Instantly share code, notes, and snippets.

@Tony363
Created September 17, 2023 19:35
Show Gist options
  • Save Tony363/4901f1d1127fc0b33d434d7b254ec512 to your computer and use it in GitHub Desktop.
Save Tony363/4901f1d1127fc0b33d434d7b254ec512 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "scrap_links.py", line 67, in <module>
main()
File "scrap_links.py", line 26, in main
driver = webdriver.Chrome(executable_path=args.chrome_driver_path,options=options)
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
RemoteWebDriver.__init__(
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 319, in execute
response = self.command_executor.execute(driver_command, params)
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 374, in execute
return self._request(command_info[0], url, body=data)
File "/home/seluser/.local/lib/python3.8/site-packages/selenium/webdriver/remote/remote_connection.py", line 397, in _request
resp = self._conn.request(method, url, body=body, headers=headers)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/_request_methods.py", line 118, in request
return self.request_encode_body(
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/_request_methods.py", line 217, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 432, in urlopen
conn = self.connection_from_host(u.host, port=u.port, scheme=u.scheme)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 303, in connection_from_host
return self.connection_from_context(request_context)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 328, in connection_from_context
return self.connection_from_pool_key(pool_key, request_context=request_context)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 351, in connection_from_pool_key
pool = self._new_pool(scheme, host, port, request_context=request_context)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/poolmanager.py", line 265, in _new_pool
return pool_cls(host, port, **request_context)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 196, in __init__
timeout = Timeout.from_float(timeout)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/util/timeout.py", line 190, in from_float
return Timeout(read=timeout, connect=timeout)
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/util/timeout.py", line 119, in __init__
self._connect = self._validate_timeout(connect, "connect")
File "/home/seluser/.local/lib/python3.8/site-packages/urllib3/util/timeout.py", line 156, in _validate_timeout
raise ValueError(
ValueError: Timeout value connect was <object object at 0x7f3524144860>, but it must be an int, float or None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment