aydinnyunus / WhatsappBOT

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

Error on execution. #15

Closed eduardomarco closed 1 year ago

eduardomarco commented 3 years ago

PS D:\Users\eduar\Documents\WhatsappBOT> & 'D:\Users\eduar\AppData\Local\Programs\Python\Python39\python.exe' 'c:\Users\eduar.vscode\extensions\ms-python.python-2021.9.1191016588\pythonFiles\lib\python\debugpy\launcher' '60895' '--' 'd:\Users\eduar\Documents\WhatsappBOT\WhatsappBot.py' Exception in Tkinter callback Traceback (most recent call last): File "D:\Users\eduar\AppData\Local\Programs\Python\Python39\lib\tkinter__init.py", line 1892, in call__ return self.func(*args) File "d:\Users\eduar\Documents\WhatsappBOT\WhatsappBot.py", line 346, in Driver driver = webdriver.Chrome(executable_path="D:/Users/eduar/Documents/WhatsappBOT/chromedriver", options=options) File "D:\Users\eduar\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init self.service.start() File "D:\Users\eduar\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env, File "D:\Users\eduar\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in init self._execute_child(args, executable, preexec_fn, close_fds, File "D:\Users\eduar\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, OSError: [WinError 193] %1 não é um aplicativo Win32 válido

aydinnyunus commented 1 year ago

download compatible chromedriver on https://chromedriver.chromium.org/

aydinnyunus commented 1 year ago

then copy to whatsappbot folder and change on the WhatsappBot.py "./chromedriver" to "./chromedriver.exe"