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

Exception has occurred: ModuleNotFoundError No module named 'undetected_chromedriver.v2' #140

Open
dwk601 opened this issue May 4, 2024 · 7 comments

Comments

@dwk601
Copy link

dwk601 commented May 4, 2024

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'quickstart.py' change email and password
  2. Click on 'python3 quickstart.py'
  3. See error
  4. Exception has occurred: ModuleNotFoundError
    No module named 'undetected_chromedriver.v2'
    File "/home/dongwook/Project/TinderBotz/tinderbotz/session.py", line 4, in
    import undetected_chromedriver.v2 as uc
    File "/home/dongwook/Project/TinderBotz/tinderbotz/init.py", line 1, in
    from tinderbotz.session import Session
    File "/home/dongwook/Project/TinderBotz/quickstart.py", line 5, in
    from tinderbotz.session import Session
    ModuleNotFoundError: No module named 'undetected_chromedriver.v2'
  5. Reinstall the python libraries still shows the error

Desktop (please complete the following information):

  • OS: Linux Mint
  • Browser: Firefox
  • Version: Linux Mint 21.3 Cinnamon
@dwk601
Copy link
Author

dwk601 commented May 4, 2024

solved with replacing it

import undetected_chromedriver as uc

but another issue:
Exception has occurred: WebDriverException
Message: unknown error: cannot connect to chrome at 127.0.0.1:56425
from session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 124.0.6367.118

@blzbruno
Copy link

blzbruno commented May 5, 2024

remove specific version info in requirements.txt and install the libraries again worked well for me

@dwk601
Copy link
Author

dwk601 commented May 5, 2024

I just git clone the repo and remove the version in the requirements and update the quickstart.py then when i run it, it shows this error from the session.py

Exception has occurred: WebDriverException
Message: unknown error: cannot connect to chrome at 127.0.0.1:36279
from session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 124.0.6367.118

@budocay
Copy link

budocay commented Jun 18, 2024

Go to session.py and change value of uc.Chrome(options=options) by

self.browser = uc.Chrome(options=options, version_main=YourChromeVersionGivenByConsole) #There it will be 114

But, you have to update thoses packages in requirements.txt:

selenium==4.11.2
undetected-chromedriver==3.5.5
webdriver-manager==4.0.1

Relaunch the program one time and check the version in the console and replace it

@currygotgame
Copy link

Go to session.py and change value of uc.Chrome(options=options) by

self.browser = uc.Chrome(options=options, version_main=YourChromeVersionGivenByConsole) #There it will be 114

But, you have to update thoses packages in requirements.txt:

selenium==4.11.2 undetected-chromedriver==3.5.5 webdriver-manager==4.0.1

Relaunch the program one time and check the version in the console and replace it

Hey I am having the same error too how do i fix it ? I tried changing the value of chrome by putting
self.browser = uc.Chrome(options=options, version_main=126.0)
What else do i have to do ?

@currygotgame
Copy link

hey how do you fix this issue i get the same thing ModuleNotFoundError: No module named 'undetected_chromedriver.v2'

@budocay
Copy link

budocay commented Jun 20, 2024

@currygotgame you have to only delete v2 and it gonna work

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

4 participants