0
#This is the code :

chrome_options:Options = webdriver.ChromeOpons()
chrome_options.add_argument("--no-sandbox")
chrome_options.add_argument("--headless")
chrome_options.add_argument("--disable-gpu")

chrome_options.add_experimental_option('w3c', True)


Welcome to Cloud Shell! Type "help" to get started.
To set your Cloud Platform project in this session use “gcloud config set project [PROJECT_ID]”
ynspirozdata@cloudshell:~$ /usr/bin/python /home/inspirozdata/Tested_files/app.py
/home/inspirozdata/Tested_files/app.py:153: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
  driver = webdriver.Chrome(executable_path=os.path.abspath("chromedriver"),
/home/inspirozdata/Tested_files/app.py:153: DeprecationWarning: use options instead of chrome_options
  driver = webdriver.Chrome(executable_path=os.path.abspath("chromedriver"),
Traceback (most recent call last):
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 97, in start
    path = SeleniumManager.driver_location(browser)
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/selenium_manager.py", line 68, in driver_location
    result = SeleniumManager.run(args)
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/selenium_manager.py", line 85, in run
    raise WebDriverException(f"Unsuccessful command executed: {args}")
selenium.common.exceptions.WebDriverException: Message: Unsuccessful command executed: ('/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/linux/selenium-manager', '--browser', 'chrome')


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/inspirozdata/Tested_files/app.py", line 153, in <module>
    driver = webdriver.Chrome(executable_path=os.path.abspath("chromedriver"),   
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
    super().__init__(
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/chromium/webdriver.py", line 103, in __init__
    self.service.start()
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 100, in start
    raise err
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 91, in start
    self._start_process(self.path)
  File "/home/inspirozdata/.local/lib/python3.9/site-packages/selenium/webdriver/common/service.py", line 203, in _start_process
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home

inspirozdata@cloudshell:~$ 

why chrome driver was not supporting in google cloud editor. why it's working in local machine like IDE: Pycharm, visual studio.

My motive is , how to pull the website data into google cloud buckets with python script. I'm trying that, i can't find the answer. I'm trying to find the answer . where i can find the Chrome_Driver path in google cloud.In local machine i was findout that path. come's to the google cloud i can't find the path. please help me.

if u have any source ,please provide.

Thank you

Cooper
  • 59,616
  • 6
  • 23
  • 54

0 Answers0