Skip to content
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

Unable to use the library #144

Open
xxshubhamxx opened this issue Dec 3, 2023 · 1 comment
Open

Unable to use the library #144

xxshubhamxx opened this issue Dec 3, 2023 · 1 comment

Comments

@xxshubhamxx
Copy link

xxshubhamxx commented Dec 3, 2023

I installed the latest version through releases but getting this error:

>>> from alright import WhatsApp
>>> messenger = WhatsApp()

[WDM] - Current google-chrome version is 119.0.6045
[WDM] - Get LATEST driver version for 119.0.6045
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\shubh\Downloads\alright-1.7\alright-1.7\alright\__init__.py", line 38, in __init__
    ChromeDriverManager().install(),
  File "C:\Users\shubh\AppData\Local\Programs\Python\Python39\lib\site-packages\webdriver_manager\chrome.py", line 32, in install
    driver_path = self._get_driver_path(self.driver)
  File "C:\Users\shubh\AppData\Local\Programs\Python\Python39\lib\site-packages\webdriver_manager\manager.py", line 22, in _get_driver_path
    driver_version = driver.get_version()
  File "C:\Users\shubh\AppData\Local\Programs\Python\Python39\lib\site-packages\webdriver_manager\driver.py", line 40, in get_version
    return self.get_latest_release_version()
  File "C:\Users\shubh\AppData\Local\Programs\Python\Python39\lib\site-packages\webdriver_manager\driver.py", line 64, in get_latest_release_version
    validate_response(resp)
  File "C:\Users\shubh\AppData\Local\Programs\Python\Python39\lib\site-packages\webdriver_manager\utils.py", line 79, in validate_response
    raise ValueError("There is no such driver by url {}".format(resp.url))
ValueError: There is no such driver by url http://chromedriver.storage.googleapis.com/LATEST_RELEASE_119.0.6045
@TeamGrowai
Copy link

 if not browser:
            s = Service(ChromeDriverManager().install())
            browser = webdriver.Chrome(
                service=s,
                options=self.chrome_options,
            )

modify the code like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants