pyronlaboratory / heroku-integrated-firefox-geckodriver

Buildpack enables your client code to access Firefox along with Geckodriver in a Heroku slug.
https://pyronlaboratory.github.io/heroku-integrated-firefox-geckodriver/
MIT License
41 stars 81 forks source link

Python - invalid argument: can't kill an exited process #11

Open brunoapcd opened 4 years ago

brunoapcd commented 4 years ago

Hi guys, I am trying to use Geckodriver in my Python application hosted on Heroku and I'm getting the following exception:

"invalid argument: can't kill an exited process"

My code: from selenium.webdriver.firefox.options import Options

options = Options()
options.headless = True
options.binary_location = os.environ.get("FIREFOX_BIN")
driver = webdriver.Firefox(options=options, executable_path=os.environ.get("GECKODRIVER_PATH"))

driver.get("https://my-url")

Any ideas? I already installed the buildpacks and set all the server variables.

github-actions[bot] commented 4 years ago

Thank you for using heroku-integrated-firefox-geckodriver. Preliminary examination of your issue is underway' first issue

adamb70 commented 4 years ago

Having the same issue here. Seems like firefox won't start up at all:

> ~/vendor/firefox $ ./firefox -h

XPCOMGlueLoad error for file /app/vendor/firefox/libxul.so:
libXt.so.6: cannot open shared object file: No such file or directory
Couldn't load XPCOM.
kingkong-cmd commented 4 years ago

Same issue here as well.

pyronlaboratory commented 3 years ago

@brunoapcd, with the limited code and logs that you've posted, it's hard for me to guide you. Would appreciate it if you could post more detailed debug logs.

pyronlaboratory commented 3 years ago

@adamb70 and @kingkong-cmd, XPCOMGlueLoad error hints that the error originates from firefox, which is out of the scope of this buildpack as explained in this issue #6