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

You are viewing a single thread.
View all comments
0 points

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.

permalink
report
reply

All things Python

!python@kbin.social

Create post

A magazine for the discussion of the Python programming language

Community stats

  • 1

    Monthly active users

  • 20

    Posts

  • 13

    Comments

Community moderators