-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
chrome/chromium renderer not detected correctly on Ubuntu (name is chromium-browser) #2348
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
Comments
Happy to go with the cleaner solution. What does setting the renderer to |
It uses the default browser. |
I wanted to reproduce a problem which a user was having on Chrome without having to change my default browser. |
Yeah, I like this idea. I think attempting to separate chrome and chromium is still a good idea. We could have the renderers["chrome"] = BrowserRenderer(config=config, using=["chrome", "chrome-browser"])
renderers["chromium"] = BrowserRenderer(config=config, using=["chromium", "chromium-browser"]) |
Hi @emmanuelle @jonmmease @nicolaskruchten I have gone through the code and realised that this issue isn't fixed yet. Just wanted to confirm if I could start working on the fix or if it was being worked on by someone else? |
A fix would be welcome, thank you :) |
Thanks for the response @nicolaskruchten Running webbrowser._browser.keys gives me the following list on my Ubuntu 16.04 distro
From @emmanuelle code we see that using
Experimenting with string matching seems to be the best solution(as was discussed above).
let me know your views on the same. |
I think you've got the right idea. My intuition here would be to allow the
Like I mentioned in #2348 (comment), then For import time, we want to make sure that none of this logic happens on import. So it shouldn't happen in |
Thank you for the suggestion @jonmmease. I have made the changes you have suggested in my local branch ( c-chaitanya@5ae493c ). |
Hi @jonmmease, understanding other parts of the renderer code more clearly, I see that renderers are also invoked as follows If we have a look at the changes in these two files ( c-chaitanya@5ae493c ) we see that the parameters passed to using |
Hi @c-chaitanya. Your changes in that commit look fine to me, I don't quite follow what issue you're running into. The Also, feel free to go ahead and make a PR even if you're not sure it's finished yet. It'll be a little easier to talk through specific code questions that way. Thanks! |
Hi @jonmmease , I have given a pull request #3278 to fix this issue. The CircleCi fails for one test "Check formating with black". The thing was when I ran black on my local branch it gave me "903 files reformatted, 10053 files left unchanged". 903 was a big number so i did not add the reformatted files. Shoud I reformat and give a new pull request? |
Hi @jonmmease @nicolaskruchten I reformatted using black and gave a pull request again. This time I notice CircleCI fails for test related to orca. Just to check if errors were due to my changes, I ran the pytests on the plotly.py master branch and I notice the same orca errors. Thus I deduced that the errors preexisted in the master branch and were not induced by these changes. Is there anything I can do to fix these errors?. |
fix for chromium renderer on linux systems (issue #2348)
Thanks @c-chaitanya 👏 |
On my Ubuntu machine I cannot configure a chrome renderer (my default browser is firefox). The reason is that Chromium is registered with the name
chromium-browser
as shown below, so thatwebbrowser.get
throws an error when called withchrome
.We could either add another renderer name
chromium-browser
, or query matching strings inwebbrowser._browser.keys()
. The second solution is probably cleaner and could also make it possible to remove either 'chrome' or 'chromium' if we want. Thoughts @jonmmease @nicolaskruchten ?The text was updated successfully, but these errors were encountered: