frederikme / TinderBotz

Automated Tinder bot and scraper using selenium in python.
MIT License
541 stars 145 forks source link

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

Open dwk601 opened 2 months ago

dwk601 commented 2 months ago

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):

dwk601 commented 2 months ago

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 commented 2 months ago

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

dwk601 commented 2 months ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

budocay commented 2 weeks ago

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

CarIosLopez commented 2 weeks ago

Some help with this

Exception ignored in atexit callback: <function Session.init..cleanup at 0x000001DD04E93E20> Traceback (most recent call last): File "c:\Users\vasqu\Desktop\tINDER\TinderBotz-master\tinderbotz\session.py", line 69, in cleanup print("Started session: {}".format(self.started)) AttributeError: 'Session' object has no attribute 'started'

mizitean commented 4 hours ago

try this

https://github.com/frederikme/TinderBotz/issues/142