Did any of you ever tried to compile a python app that uses selenium with PyInstaller? The app works perfectly if launched as a python script, but when in binary format I get an error like this:

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 /opt/google/chrome/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

#python

  • oi_dude
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I can’t recall if I encountered this specific error. It looks like it is not finding the chrome executable. It sounds almost like your binary did not receive /is not respecting a “—no-sandbox” flag.