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

OSError: [WinError 193] %1 is not a valid Win32 application #2

Open
iagoedelstein opened this issue Nov 6, 2020 · 0 comments
Open

Comments

@iagoedelstein
Copy link

iagoedelstein commented Nov 6, 2020

I get this when running the program, are there requiremenets for running it?

---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-1-ecf3fe8cdd2b> in <module>
     43 
     44 
---> 45 bot = WhatsappBot()
     46 bot.SendMessages()

<ipython-input-1-ecf3fe8cdd2b> in __init__(self)
     23         options = webdriver.ChromeOptions()
     24         options.add_argument('lang=pt-br')
---> 25         self.driver = webdriver.Chrome(executable_path = './erfan4lx')
     26 
     27     def SendMessages(self):

~\.conda\envs\dhdsblend\lib\site-packages\selenium\webdriver\chrome\webdriver.py in __init__(self, executable_path, port, options, service_args, desired_capabilities, service_log_path, chrome_options, keep_alive)
     71             service_args=service_args,
     72             log_path=service_log_path)
---> 73         self.service.start()
     74 
     75         try:

~\.conda\envs\dhdsblend\lib\site-packages\selenium\webdriver\common\service.py in start(self)
     74                                             stdout=self.log_file,
     75                                             stderr=self.log_file,
---> 76                                             stdin=PIPE)
     77         except TypeError:
     78             raise

~\.conda\envs\dhdsblend\lib\subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds, encoding, errors, text)
    798                                 c2pread, c2pwrite,
    799                                 errread, errwrite,
--> 800                                 restore_signals, start_new_session)
    801         except:
    802             # Cleanup if the child failed starting.

~\.conda\envs\dhdsblend\lib\subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, unused_restore_signals, unused_start_new_session)
   1205                                          env,
   1206                                          os.fspath(cwd) if cwd is not None else None,
-> 1207                                          startupinfo)
   1208             finally:
   1209                 # Child is launched. Close the parent's copy of those pipe

OSError: [WinError 193] %1 no es una aplicación Win32 válida
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

1 participant