Can't install pip dependencies

Im trying to set the 2captcha-python lib as a dependency but can’t get the environment to set up properly.
Shouldn’t I be able to use it just by adding it to the pip dependacy list on the conda.yaml file? What am I missing?

My conda.yaml:

channels:
  # Define conda channels here. 
  - conda-forge

dependencies:
  # Define conda packages here. 
  # If available, always prefer the conda version of a package, installation will be faster and more efficient.
  # https://anaconda.org/search  
  - python=3.7.5

  - pip=20.1
  - pip:
    # Define pip packages here. 
    # https://pypi.org/
    - rpaframework==9.5.0 # https://rpaframework.org/releasenotes.html
    - 2captcha-python==1.1.0

Error log:

tasks:
Run all tasks:
shell: python -m robot --report NONE --outputdir output --logtitle “Task log” tasks.robot

Run Example task:
robotTaskName: Example Task

condaConfigFile: conda.yaml
ignoreFiles:

  • .gitignore
    artifactsDir: output
    PATH:
  • .
    PYTHONPATH:
  • keywords
  • libraries
  • variables

Progress: 0/6 [try use existing live same environment?] 053d7c13-1c7a-aa62-32e3-4d252f97ee3a

FINAL union conda environment descriptor:

channels:

  • conda-forge
    dependencies:
  • python=3.7.5
  • pip=20.1
  • pip:
    • rpaframework==9.5.0
    • 2captcha-python==1.1.0

Progress: 1/6 [environment key is: 3adf9470f8dc7b50 (deprecated)]

Progress: 2/6 [try clone existing same template to live, key: 3adf9470f8dc7b50]

Progress: 3/6 [try create new environment from scratch]

Progress: 4/6 [pip install phase]

Fatal [Pip]: exit status 1
— installation plan “3adf9470f8dc7b50” 2021-07-14T10:07:08-03:00 [force: false, fresh: false| rcc v9.16.0] —

— plan blueprint @0.000s

channels:

  • conda-forge
    dependencies:
  • python=3.7.5
  • pip=20.1
  • pip:
    • rpaframework==9.5.0
    • 2captcha-python==1.1.0

— micromamba plan @0.000s

                                       __
      __  ______ ___  ____ _____ ___  / /_  ____ _
     / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
    / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
   / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
  /_/

conda-forge/noarch
conda-forge/win-64

Transaction

Prefix: C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50

Updating specs:

  • python==3.7.5
  • pip==20.1

Package Version Build Channel Size

Install:

ca-certificates 2021.5.30 h5b45459_0 conda-forge/win-64 Cached
certifi 2021.5.30 py37h03978a9_0 conda-forge/win-64 Cached
openssl 1.1.1k h8ffe710_0 conda-forge/win-64 Cached
pip 20.1.1 py_1 conda-forge/noarch Cached
python 3.7.5 h7840368_0_cpython conda-forge/win-64 Cached
python_abi 3.7 2_cp37m conda-forge/win-64 Cached
setuptools 49.6.0 py37h03978a9_3 conda-forge/win-64 Cached
sqlite 3.36.0 h8ffe710_0 conda-forge/win-64 Cached
ucrt 10.0.20348.0 h57928b3_0 conda-forge/win-64 Cached
vc 14.2 hc4473a8_5 conda-forge/win-64 Cached
vs2015_runtime 14.29.30037 h902a5da_5 conda-forge/win-64 Cached
wheel 0.36.2 pyhd3deb0d_0 conda-forge/noarch Cached
wincertstore 0.2 py37h03978a9_1006 conda-forge/win-64 Cached

Summary:

Install: 13 packages

Total download: 0 B


Transaction starting
Linking ucrt-10.0.20348.0-h57928b3_0
Linking ca-certificates-2021.5.30-h5b45459_0
Linking vs2015_runtime-14.29.30037-h902a5da_5
Linking vc-14.2-hc4473a8_5
Linking sqlite-3.36.0-h8ffe710_0
Linking openssl-1.1.1k-h8ffe710_0
Linking python-3.7.5-h7840368_0_cpython
Linking python_abi-3.7-2_cp37m
Linking wincertstore-0.2-py37h03978a9_1006
Linking certifi-2021.5.30-py37h03978a9_0
Linking setuptools-49.6.0-py37h03978a9_3
Linking wheel-0.36.2-pyhd3deb0d_0
Linking pip-20.1.1-py_1
Transaction finished

— pip plan @99.620s

Command [“pip” “install” “–no-color” “–disable-pip-version-check” “–prefer-binary” “–cache-dir” “C:\Users\holiveira\AppData\Local\robocorp\pipcache” “–find-links” “C:\Users\holiveira\AppData\Local\robocorp\wheels” “–requirement” “C:\Users\HOLIVE~1\AppData\Local\Temp\require_60eee17b.txt”] at “C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50”:
Looking in links: c:\Users\holiveira\AppData\Local\robocorp\wheels
Collecting rpaframework==9.5.0
Using cached rpaframework-9.5.0-py3-none-any.whl (214 kB)
Collecting 2captcha-python==1.1.0
Using cached 2captcha-python-1.1.0.tar.gz (8.8 kB)
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python\setup.py’"’"’; file=’"’"‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base ‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-pip-egg-info-fr4o71dl’
cwd: C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python
Complete output (9 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python\setup.py”, line 4, in
from twocaptcha import version
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python\twocaptcha_init_.py”, line 1, in
from .api import ApiClient
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-90wsoncb\2captcha-python\twocaptcha\api.py”, line 3, in
import requests
ModuleNotFoundError: No module named ‘requests’
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Retry! First try failed … now retrying with debug and force options!
Rename/remove “C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50” using “C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50.E5717127” as random name.
Setting up new conda environment using C:\Users\HOLIVE~1\AppData\Local\Temp\conda_60eee17b.yaml to folder C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50
=== new live — micromamba create phase ===
PID #15764 is “C:\Users\holiveira\AppData\Local\robocorp\bin\micromamba.exe create --always-copy --no-rc --safety-checks enabled --extra-safety-checks --retry-clean-cache --strict-channel-priority --repodata-ttl 0 -y -f C:\Users\HOLIVE~1\AppData\Local\Temp\conda_60eee17b.yaml -p C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50”.
PID #15764 finished: exit status 0.

Progress: 4/6 [pip install phase]

Updating new environment at C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50 with pip requirements from C:\Users\HOLIVE~1\AppData\Local\Temp\require_60eee17b.txt (size: 43)
=== new live — pip install phase ===
Using C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50\Scripts\pip.exe as command pip.
PID #3920 is “C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50\Scripts\pip.exe install --no-color --disable-pip-version-check --prefer-binary --cache-dir C:\Users\holiveira\AppData\Local\robocorp\pipcache --find-links C:\Users\holiveira\AppData\Local\robocorp\wheels --requirement C:\Users\HOLIVE~1\AppData\Local\Temp\require_60eee17b.txt”.
PID #3920 finished: exit status 1.
Fatal [Pip]: exit status 1
— installation plan “3adf9470f8dc7b50” 2021-07-14T10:08:52-03:00 [force: true, fresh: false| rcc v9.16.0] —

— plan blueprint @0.000s

channels:

  • conda-forge
    dependencies:
  • python=3.7.5
  • pip=20.1
  • pip:
    • rpaframework==9.5.0
    • 2captcha-python==1.1.0

— micromamba plan @0.001s

                                       __
      __  ______ ___  ____ _____ ___  / /_  ____ _
     / / / / __ `__ \/ __ `/ __ `__ \/ __ \/ __ `/
    / /_/ / / / / / / /_/ / / / / / / /_/ / /_/ /
   / .___/_/ /_/ /_/\__,_/_/ /_/ /_/_.___/\__,_/
  /_/

conda-forge/noarch
conda-forge/win-64

Transaction

Prefix: C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50

Updating specs:

  • python==3.7.5
  • pip==20.1

Package Version Build Channel Size

Install:

ca-certificates 2021.5.30 h5b45459_0 conda-forge/win-64 Cached
certifi 2021.5.30 py37h03978a9_0 conda-forge/win-64 Cached
openssl 1.1.1k h8ffe710_0 conda-forge/win-64 Cached
pip 20.1.1 py_1 conda-forge/noarch Cached
python 3.7.5 h7840368_0_cpython conda-forge/win-64 Cached
python_abi 3.7 2_cp37m conda-forge/win-64 Cached
setuptools 49.6.0 py37h03978a9_3 conda-forge/win-64 Cached
sqlite 3.36.0 h8ffe710_0 conda-forge/win-64 Cached
ucrt 10.0.20348.0 h57928b3_0 conda-forge/win-64 Cached
vc 14.2 hc4473a8_5 conda-forge/win-64 Cached
vs2015_runtime 14.29.30037 h902a5da_5 conda-forge/win-64 Cached
wheel 0.36.2 pyhd3deb0d_0 conda-forge/noarch Cached
wincertstore 0.2 py37h03978a9_1006 conda-forge/win-64 Cached

Summary:

Install: 13 packages

Total download: 0 B


Transaction starting
Linking ucrt-10.0.20348.0-h57928b3_0
Linking ca-certificates-2021.5.30-h5b45459_0
Linking vs2015_runtime-14.29.30037-h902a5da_5
Linking vc-14.2-hc4473a8_5
Linking sqlite-3.36.0-h8ffe710_0
Linking openssl-1.1.1k-h8ffe710_0
Linking python-3.7.5-h7840368_0_cpython
Linking python_abi-3.7-2_cp37m
Linking wincertstore-0.2-py37h03978a9_1006
Linking certifi-2021.5.30-py37h03978a9_0
Linking setuptools-49.6.0-py37h03978a9_3
Linking wheel-0.36.2-pyhd3deb0d_0
Linking pip-20.1.1-py_1
Transaction finished

— pip plan @52.834s

Command [“pip” “install” “–no-color” “–disable-pip-version-check” “–prefer-binary” “–cache-dir” “C:\Users\holiveira\AppData\Local\robocorp\pipcache” “–find-links” “C:\Users\holiveira\AppData\Local\robocorp\wheels” “–requirement” “C:\Users\HOLIVE~1\AppData\Local\Temp\require_60eee17b.txt”] at “C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50”:
Looking in links: c:\Users\holiveira\AppData\Local\robocorp\wheels
Collecting rpaframework==9.5.0
Using cached rpaframework-9.5.0-py3-none-any.whl (214 kB)
Collecting 2captcha-python==1.1.0
Using cached 2captcha-python-1.1.0.tar.gz (8.8 kB)
ERROR: Command errored out with exit status 1:
command: ‘C:\Users\holiveira\AppData\Local\robocorp\live\3adf9470f8dc7b50\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python\setup.py’"’"’; file=’"’"‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python\setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ egg_info --egg-base ‘C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-pip-egg-info-bu5xrxig’
cwd: C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python
Complete output (9 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python\setup.py”, line 4, in
from twocaptcha import version
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python\twocaptcha_init_.py”, line 1, in
from .api import ApiClient
File “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c\pip-install-cozfsohg\2captcha-python\twocaptcha\api.py”, line 3, in
import requests
ModuleNotFoundError: No module named ‘requests’
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Progress: 6/6 [Done.] [Cache statistics: 17 environments, 320 requests, 91 merges, 236 hits, 1 dirty, 18 misses, 41 failures | v9.16.0]

Marked “C:\Users\holiveira\AppData\Local\robocorp\temp\382fce52ae750c8c” for recyling.
Error: Could not create environment.
DEBUG: wait telemetry to complete
DEBUG: telemetry sending completed

This seems to be bug on 2captcha side with docker.

I tried to download the lib and it works in my machine, but won’t work if i start the process via control room.
image

Here’s the library I’m using:
MyLibrary.zip (3.4 KB)