aydinnyunus / WhatsappBOT

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

the application does not work #30

Open sergiosky787878 opened 12 months ago

sergiosky787878 commented 12 months ago

/home/cosa/WhatsappBOT/WhatsappBot.py:354: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(executable_path="./chromedriver", options=options) Exception in Tkinter callback Traceback (most recent call last): File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 71, in start self.process = subprocess.Popen(cmd, env=self.env, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: './chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.11/tkinter/init.py", line 1948, in call return self.func(*args) ^^^^^^^^^^^^^^^^ File "/home/cosa/WhatsappBOT/WhatsappBot.py", line 354, in Driver driver = webdriver.Chrome(executable_path="./chromedriver", options=options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog", File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init self.service.start() File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 86, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://chromedriver.chromium.org/home

┌──(venv)─(cosa㉿kali)-[~/WhatsappBOT] └─$ python3 WhatsappBot.py [573012474775] /home/cosa/WhatsappBOT/WhatsappBot.py:354: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(executable_path="./chromedriver", options=options) Exception in Tkinter callback Traceback (most recent call last): File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 71, in start self.process = subprocess.Popen(cmd, env=self.env, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/subprocess.py", line 1026, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: './chromedriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.11/tkinter/init.py", line 1948, in call return self.func(*args) ^^^^^^^^^^^^^^^^ File "/home/cosa/WhatsappBOT/WhatsappBot.py", line 354, in Driver driver = webdriver.Chrome(executable_path="./chromedriver", options=options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 70, in init super(WebDriver, self).init(DesiredCapabilities.CHROME['browserName'], "goog", File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 89, in init self.service.start() File "/home/cosa/WhatsappBOT/venv/lib/python3.11/site-packages/selenium/webdriver/common/service.py", line 86, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable may have wrong permissions. Please see https://chromedriver.chromium.org/home

ilias-anouar commented 5 months ago

hey @sergiosky787878, there was an error !!! , I already fixed it just waiting for the pull request to get merged