aydinnyunus / WhatsappBOT

Send messages to any person in any time how much you want.
423 stars 104 forks source link

put executable in the path #5

Closed pretech86 closed 4 years ago

pretech86 commented 4 years ago

i run the tool but and download chromedriver last version and put its path inside the code ( python file ) and install googlechrome but still get the folloiwng error ( my google chrom not starting until i write --no-sandbox )

WhatsappBot.py:108: DeprecationWarning: executable_path has been deprecated, please pass in a Service object

driver = webdriver.Chrome(executable_path="/root/WhatsappBOT/chromedriver", options=options)

Exception in Tkinter callback

Traceback (most recent call last):

File "/usr/lib/python3.7/tkinter/init.py", line 1705, in call

return self.func(*args)

File "WhatsappBot.py", line 108, in Driver

driver = webdriver.Chrome(executable_path="/root/WhatsappBOT/chromedriver", options=options)

File "/usr/lib/python3/dist-packages/selenium/webdriver/chrome/webdriver.py", line 100, in init

desired_capabilities=desired_capabilities)

File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 152, in init

self.start_session(capabilities, browser_profile)

File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 249, in start_session

response = self.execute(Command.NEW_SESSION, parameters)

File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/webdriver.py", line 318, in execute

self.error_handler.check_response(response)

File "/usr/lib/python3/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response

raise exception_class(message, screen, stacktrace)

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.

(unknown error: DevToolsActivePort file doesn't exist)

(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

aydinnyunus commented 4 years ago

Do you specify the ChromeData part in options=options ? If you want you can delete.

pretech86 commented 4 years ago

thanks it working

aydinnyunus commented 4 years ago

You are welcome