Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the application does not work #30

Open
sergiosky787878 opened this issue Aug 28, 2023 · 1 comment
Open

the application does not work #30

sergiosky787878 opened this issue Aug 28, 2023 · 1 comment

Comments

@sergiosky787878
Copy link

/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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants