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

AttributeError: 'TwoCaptcha' object has no attribute 'normal' #68

Open
micazev opened this issue Dec 21, 2023 · 2 comments
Open

AttributeError: 'TwoCaptcha' object has no attribute 'normal' #68

micazev opened this issue Dec 21, 2023 · 2 comments

Comments

@micazev
Copy link

micazev commented Dec 21, 2023

I have both installed: twocaptcha and 2captcha-python
the code:

from twocaptcha import TwoCaptcha

...

solver = TwoCaptcha(captchaKey)
try:
captcha = solver.normal("config/captcha_image.png")
logging.info(f"Resultado 2captcha: {captcha}")
return captcha
except Exception as e:
logging.error(f"Erro ao resolver o captcha automaticamente: {e}”)

i’ve also tried like:
captcha = solver.normal(file="config/captcha_image.png")

@ethmtrgt
Copy link

ethmtrgt commented Feb 1, 2024

TwoCaptcha package is not the correct one, 2captcha-python is. It conflicts with the actual package when you installed both.
Uninstall the incorrect package with pip uninstall twocaptcha
If it doesn't get fixed, uninstall the correct package and install it again.

@poplers24
Copy link
Collaborator

@micazev Good afternoon, try running the code using the python3 command.
Example: python3 main.py
Or use a virtual environment.

And please let me know the result.

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

3 participants