-
Notifications
You must be signed in to change notification settings - Fork 5
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
Error on running x$carbonate()
#29
Comments
It appears you do not have the expected version of the gecko driver installed that {binman} depends on, which handles requests for wdman, which in turn backends {RSelenium}, which drives {carbonate}.
what do you get when you run If it is '', then you will probably need to run: |
Sys.which("firefox")
#> firefox
#> "/usr/bin/firefox" Created on 2022-04-18 by the reprex package (v2.0.1) |
That’s good 👍. What version is it? are you able to run this example? gDrv <- wdman::gecko(port = httpuv::randomPort())
gDrv$output()
gDrv$stop() |
Regardless though carbonate assumes you are running on a chrome driver. I don’t think it would run on a gecko. https://github.com/yonicd/carbonate/blob/master/R/selenium_functions.R |
Sure: gDrv <- wdman::gecko(port = httpuv::randomPort())
#> checking geckodriver versions:
#> BEGIN: PREDOWNLOAD
#> BEGIN: DOWNLOAD
#> BEGIN: POSTDOWNLOAD
gDrv$output()
#> character(0)
gDrv$stop()
#> [1] TRUE Created on 2022-04-18 by the reprex package (v2.0.1) |
Looks right. I’m away from a computer for the week. I’ll be able to dive deeper on the weekend. Your original error is weird. Seems like wdman downloaded the chrome driver but is erroring out on a gecko tar file in post download. |
I found the same frustrating error. It is something in the guts of RSelenium. After a a few days of futzing with it I finished up a long open PR that gets around the issue by supporting chrome and firefox for carbonate. firefox is the default, and runs headless which makes things smoother from the end user perspective imo. you can try it out, it is merged into the master branch. c8f41c1 |
Wow! Amazing work by the sounds of it, will try soon, busy week though, many thanks 🎉 |
Describe the bug
I got an error message when trying to create a carbonate screenshot for the first time.
To Reproduce
Expected behavior
I expected to have an error message that provided indications of how to resolve the issue.
Session Info
Created on 2022-04-18 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: