mherrmann / helium

Lighter web automation with Python
MIT License
4.87k stars 368 forks source link

Error launching Chrome (latest version) and it's possible solution. #55

Open fharookshaik opened 3 years ago

fharookshaik commented 3 years ago

Hello sir,

Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.____ . I think helium is using the old version chrome driver.

I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\helium_impl\webdrivers\ ___ ).

It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. 😁

Thanks & Regards, Shaik Fharook.

mherrmann commented 3 years ago

I will happily accept a pull request that fixes this in such a way that python setup.py test still passes. See the README :-)

sahil1610 commented 3 years ago

@mherrmann I am taking this up

sahil1610 commented 3 years ago

@mherrmann Rather than replacing the webdriver versions everytime, shouldn't Helium download the latest available driver versions when we install it?

Something like what SeleniumBase does -> https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/drivers

mherrmann commented 3 years ago

shouldn't Helium download the latest available driver versions when we install it?

No I think that would be bad.

Instead, there should be a "Python" package helium-chromedriver that you can install with pip. That package should contain chromedriver.exe and a Python function (say) start_chrome(...) that is able to start that particular version of Chrome. Would be a great PR.

JL218 commented 3 years ago

Hello sir,

Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.____ . I think helium is using the old version chrome driver.

I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\helium_impl\webdrivers\ ___ ).

It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. 😁

Thanks & Regards, Shaik Fharook.

OMG I LOVE YOU!!! I've been going crazy with trying to sort out why it wasn't working for me!! LMAO Thank you!

Jackson4ua commented 2 years ago

Hello sir,

Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.____ . I think helium is using the old version chrome driver.

I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\helium_impl\webdrivers\ ___ ).

It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. 😁

Thanks & Regards, Shaik Fharook.

Fixed my issue! You're a legend.

AndrejKovacik57 commented 2 years ago

Hello sir,

Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.____ . I think helium is using the old version chrome driver.

I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\helium_impl\webdrivers\ ___ ).

It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. 😁

Thanks & Regards, Shaik Fharook.

Thank you man!!

aalkuatova commented 2 years ago

Hello sir, Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.__ . I think helium is using the old version chrome driver. I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\heliumimpl\webdrivers\ ____ ). It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. 😁 Thanks & Regards, Shaik Fharook.

Thank you man!!

can u explain how did u resolve the issue please? I replaced the chrome driver version to a compatible one but what to do with the gecko driver? I have an error [Errno 2] No such file or directory: 'geckodriver'

danbaghilovici commented 2 years ago

@aalkuatova if you are getting No such file or directory error it means that that the path is not correctly set up or is not picking the driver from your PATH.

See also this issue

ellnosAnalytics commented 2 years ago

Hello sir, Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.__ . I think helium is using the old version chrome driver. I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\heliumimpl\webdrivers\ ____ ). It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. grin Thanks & Regards, Shaik Fharook.

Thank you man!!

can u explain how did u resolve the issue please? I replaced the chrome driver version to a compatible one but what to do with the gecko driver? I have an error [Errno 2] No such file or directory: 'geckodriver'

Hello sir, Hope you're doing well in this pandemic. Though helium comes with it's own version of chrome driver and gecko driver, helium can't open the latest version of chrome 89.0.4389.__ . I think helium is using the old version chrome driver. I hope you know that this can be resolved by downloading the latest chrome driver and replacing them in the necessary folder (\python\Lib\site-packages\heliumimpl\webdrivers\ ____ ). It would be good if you can update them on your side so that, new folks like me don't get confused and don't need to spend hours searching how to resolve that issue. grin Thanks & Regards, Shaik Fharook.

Thank you man!!

can u explain how did u resolve the issue please? I replaced the chrome driver version to a compatible one but what to do with the gecko driver? I have an error [Errno 2] No such file or directory: 'geckodriver'

Thanks a lot bro. It worked

PullarwarOm commented 2 years ago

Hey, I am getting this error NameError: name 'start_chrome' is not defined Why is that? Please help me with this issue. @mherrmann

PullarwarOm commented 2 years ago

Hey, anyone can help with this

Hey, I am getting this error NameError: name 'start_chrome' is not defined Why is that? Please help me with this issue.

Hey, can anyone help me with this issue? @mherrmann ?

mherrmann commented 2 years ago

from helium import * - please see the instructions at https://github.com/mherrmann/selenium-python-helium

PullarwarOm commented 2 years ago

from helium import * - please see the instructions at https://github.com/mherrmann/selenium-python-helium

yes, I tried from helium import * but still not working @mherrmann

mherrmann commented 2 years ago

I'd recommend you ask on Stackoverflow @PullarwarOm.

codenigma1 commented 2 years ago

helium_impl

That great! I had been searching to resolve this issue for a day. Now it's fixed 🤗