Closed dransho1 closed 4 years ago
I am able to reproduce:
docker run python:2.7 bash -c 'pip install python_anticaptcha; python -m "import python_anticaptcha";'
I will release patch release today.
I have the same problem, but on Python3 and on scripts, not on shell. I tried your example of the new hCaptcha.
Traceback (most recent call last):
File "ex_hcapt.py", line 5, in <module>
from python_anticaptcha import AnticaptchaClient, HCaptchaTaskProxyless
ModuleNotFoundError: No module named 'python_anticaptcha'
Is it related to this or it's an error by my side? Because with the 0.4.2 version it seems to be imported
It's related to this.
Fixed in v0.5.1
.
$ docker run python:2.7 bash -c 'pip install python_anticaptcha==0.5.1; python -c "import python_anticaptcha";'
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting python_anticaptcha==0.5.1
Downloading python_anticaptcha-0.5.1-py2.py3-none-any.whl (10 kB)
Requirement already satisfied: six in /usr/local/lib/python2.7/site-packages (from python_anticaptcha==0.5.1) (1.14.0)
Collecting requests
Downloading requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting idna<3,>=2.5
Downloading idna-2.9-py2.py3-none-any.whl (58 kB)
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Installing collected packages: certifi, urllib3, idna, chardet, requests, python-anticaptcha
Successfully installed certifi-2019.11.28 chardet-3.0.4 idna-2.9 python-anticaptcha-0.5.1 requests-2.23.0 urllib3-1.25.8
Hello! It looks like the newest python-anticaptcha release breaks upon importing into a Python shell. I can confirm this for Python 2.7 (yes, hilariously past end-of-life).
My team noticed this happening this morning after the release of version 0.5.0. Pinning to v0.4.2 works fine.