TextRecognitionDataGenerator icon indicating copy to clipboard operation
TextRecognitionDataGenerator copied to clipboard

Downloads many opencv-python in `pip install trdg`

Open Honghe opened this issue 3 years ago • 3 comments

Log:

$ pip install trdg
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting trdg
  Using cached https://mirrors.aliyun.com/pypi/packages/76/55/4ce0f6e928200d3fe8460638346dcd2916d7aac33c7ebebbfec2b5eb7972/trdg-1.7.0-py3-none-any.whl (91.2 MB)
Requirement already satisfied: requests>=2.20.0 in /home/ja/miniconda3/envs/torch1.10/lib/python3.8/site-packages (from trdg) (2.26.0)
Collecting beautifulsoup4>=4.6.0
  Using cached https://mirrors.aliyun.com/pypi/packages/69/bf/f0f194d3379d3f3347478bd267f754fc68c11cbf2fe302a6ab69447b1417/beautifulsoup4-4.10.0-py3-none-any.whl (97 kB)
Requirement already satisfied: opencv-python>=4.2.0.32 in /home/ja/miniconda3/envs/torch1.10/lib/python3.8/site-packages (from trdg) (4.5.4.60)
Collecting numpy<1.17,>=1.16.4
  Using cached https://mirrors.aliyun.com/pypi/packages/b7/6f/24647f014eef9b67a24adfcbcd4f4928349b4a0f8393b3d7fe648d4d2de3/numpy-1.16.6.zip (5.1 MB)
Collecting diffimg==0.2.3
  Using cached https://mirrors.aliyun.com/pypi/packages/3d/fa/de925a7c2203b52f007ad6b9cce343c21dbe389a221a4f51f25960c83d8b/diffimg-0.2.3.tar.gz (4.1 kB)
Requirement already satisfied: pillow>=7.0.0 in /home/ja/miniconda3/envs/torch1.10/lib/python3.8/site-packages (from trdg) (8.4.0)
Requirement already satisfied: tqdm>=4.23.0 in /home/ja/miniconda3/envs/torch1.10/lib/python3.8/site-packages (from trdg) (4.62.3)
Collecting soupsieve>1.2
  Using cached https://mirrors.aliyun.com/pypi/packages/72/a6/fd01694427f1c3fcadfdc5f1de901b813b9ac756f0806ef470cfed1de281/soupsieve-2.3.1-py3-none-any.whl (37 kB)
Collecting opencv-python>=4.2.0.32
  Using cached https://mirrors.aliyun.com/pypi/packages/84/16/ea57d4a93cb201244c4ccf30ed8309aea0c1a78dcc3c9f26fcd136736ddb/opencv_python-4.5.4.58-cp38-cp38-manylinux2014_x86_64.whl (60.3 MB)
  Using cached https://mirrors.aliyun.com/pypi/packages/a0/af/61ffa11bc0e5328e6bfcbbf47e581fa89f135f995c3add71bc9a0c3000fb/opencv_python-4.5.3.56-cp38-cp38-manylinux2014_x86_64.whl (49.9 MB)
  Using cached https://mirrors.aliyun.com/pypi/packages/83/92/d663ec1a7f6717a22e5053b03c04a19744f79fa7105313aa74c6d5a9974d/opencv_python-4.5.2.54-cp38-cp38-manylinux2014_x86_64.whl (51.0 MB)
  Downloading https://mirrors.aliyun.com/pypi/packages/f2/08/135f058e4f55cd373fe64a64d34e4f3866d14d3c5704b16786b396c76404/opencv_python-4.5.2.52-cp38-cp38-manylinux2014_x86_64.whl (51.0 MB)
     |████████████████████████████████| 51.0 MB 1.7 MB/s
  Downloading https://mirrors.aliyun.com/pypi/packages/2a/9a/ff309b530ac1b029bfdb9af3a95eaff0f5f45f6a2dbe37b3454ae8412f4c/opencv_python-4.5.1.48-cp38-cp38-manylinux2014_x86_64.whl (50.4 MB)
     |████████████████████████████████| 50.4 MB 1.4 MB/s
  Downloading https://mirrors.aliyun.com/pypi/packages/58/ca/b1e6111263531208f189af732176f948885bac93a10812993eba90a11439/opencv_python-4.4.0.46-cp38-cp38-manylinux2014_x86_64.whl (49.5 MB)
     |█▎                              | 2.0 MB 2.3 MB/s eta 0:00:21^C
ERROR: Operation cancelled by user

Environment:

  • Ubuntu miniconda
  • Python 3.8
  • pip 21.2.4
pip list
Package                     Version     Location
--------------------------- ----------- -------------------------
absl-py                     0.10.0
adamp                       0.3.0
addict                      2.4.0
aiohttp                     3.8.1
aiosignal                   1.2.0
albumentations              1.1.0
altair                      4.1.0
anyio                       3.3.4
argcomplete                 1.12.3
argon2-cffi                 21.3.0
argon2-cffi-bindings        21.2.0
astor                       0.8.1
async-timeout               4.0.2
attrs                       21.2.0
backcall                    0.2.0
backports.zoneinfo          0.2.1
baidubce                    0.8.3
base58                      2.1.1
bleach                      4.1.0
blinker                     1.4
boto3                       1.19.8
botocore                    1.22.8
cachetools                  4.1.1
certifi                     2021.10.8
cffi                        1.15.0
charset-normalizer          2.0.7
click                       7.1.2
colorama                    0.4.4
configobj                   5.0.6
configparser                5.2.0
ctcdecoder                  0.1.0
cycler                      0.11.0
Cython                      0.29.24
debugpy                     1.5.1
decorator                   4.4.2
defusedxml                  0.7.1
Deprecated                  1.2.13
dill                        0.3.4
distro                      1.6.0
dnspython                   2.1.0
docker-pycreds              0.4.0
editdistance                0.6.0
entrypoints                 0.3
eventlet                    0.32.0
fastapi                     0.70.1
fiftyone                    0.14.0
fiftyone-brain              0.7.1
fiftyone-db                 0.3.0
fire                        0.4.0
frozenlist                  1.2.0
fsspec                      2021.11.1
future                      0.18.2
gitdb                       4.0.9
GitPython                   3.1.24
glob2                       0.7
gns3-gui                    2.2.25
google-auth                 1.22.1
google-auth-oauthlib        0.4.1
greenlet                    1.1.2
grpcio                      1.41.1
h11                         0.9.0
httpcore                    0.13.7
httptools                   0.1.1
httpx                       0.20.0
idna                        3.3
imageio                     2.10.1
imgaug                      0.4.0
importlib-resources         1.0.2
imutils                     0.5.4
ipdb                        0.13.9
ipykernel                   6.5.1
ipython                     7.30.1
ipython-genutils            0.2.0
ipywidgets                  7.6.5
iredis                      1.9.1
jedi                        0.17.2
Jinja2                      3.0.2
jmespath                    0.10.0
joblib                      1.1.0
jsonschema                  3.2.0
jupyter-client              7.1.0
jupyter-core                4.9.1
jupyterlab-pygments         0.1.2
jupyterlab-widgets          1.0.2
kaleido                     0.2.1
kiwisolver                  1.3.2
lmdb                        1.2.1
Markdown                    3.3.2
MarkupSafe                  2.0.1
matplotlib                  3.4.3
matplotlib-inline           0.1.3
mistune                     0.8.4
mkl-fft                     1.3.1
mkl-random                  1.2.2
mkl-service                 2.4.0
mongoengine                 0.20.0
motor                       2.5.1
multidict                   5.2.0
natsort                     8.0.0
nbclient                    0.5.9
nbconvert                   6.3.0
nbformat                    5.1.3
ndjson                      0.3.1
nest-asyncio                1.5.1
networkx                    2.6.3
nltk                        3.6.5
notebook                    6.4.6
numpy                       1.21.2
oauthlib                    3.1.1
olefile                     0.46
opencv-contrib-python       4.5.4.60
opencv-python               4.5.4.60
packaging                   21.2
pandas                      1.3.3
pandocfilters               1.5.0
parso                       0.7.1
pathtools                   0.1.2
patool                      1.12
pendulum                    2.1.2
pexpect                     4.8.0
pickleshare                 0.7.5
Pillow                      8.4.0
pip                         21.2.4
plotly                      4.14.3
pprintpp                    0.4.0
prometheus-client           0.12.0
promise                     2.3
prompt-toolkit              3.0.21
protobuf                    3.19.1
psutil                      5.8.0
ptyprocess                  0.7.0
pyarrow                     6.0.1
pyasn1                      0.4.8
pyasn1-modules              0.2.8
pybind11                    2.5.0
pyclipper                   1.3.0.post2
pycocotools                 2.0.2
pycparser                   2.21
pydantic                    1.8.2
pydeck                      0.7.1
pyDeprecate                 0.3.1
Pygments                    2.7.2
pymongo                     3.12.1
Pympler                     0.9
pyparsing                   2.4.7
PyQt5                       5.15.4
PyQt5-Qt5                   5.15.2
PyQt5-sip                   12.9.0
pyrsistent                  0.18.0
python-dateutil             2.8.2
python-dotenv               0.19.2
python-Levenshtein          0.12.2
pytorch-lightning           1.5.7
pytz                        2021.3
pytz-deprecation-shim       0.1.0.post0
pytzdata                    2020.1
PyWavelets                  1.1.1
PyYAML                      6.0
pyzmq                       22.3.0
qudida                      0.0.4
redis                       3.5.3
regex                       2021.11.10
requests                    2.26.0
requests-oauthlib           1.3.0
retrying                    1.3.3
rfc3986                     1.5.0
rsa                         4.6
s3transfer                  0.5.0
scikit-image                0.18.3
scikit-learn                1.0.1
scipy                       1.5.2
Send2Trash                  1.8.0
sentry-sdk                  1.3.1
setuptools                  58.0.4
Shapely                     1.8.0
shortuuid                   1.0.8
six                         1.16.0
smmap                       5.0.0
sniffio                     1.2.0
sortedcontainers            2.4.0
starlette                   0.16.0
streamlit                   1.2.0
streamlit-drawable-canvas   0.8.0
subprocess32                3.5.4
svgpathtools                1.4.4
svgwrite                    1.4.1
tabulate                    0.8.9
tensorboard                 2.7.0
tensorboard-data-server     0.6.1
tensorboard-plugin-wit      1.7.0
tensorboardX                2.4.1
termcolor                   1.1.0
terminado                   0.12.1
testpath                    0.5.0
threadpoolctl               3.0.0
tifffile                    2021.10.12
timm                        0.4.12
toml                        0.10.2
toolz                       0.11.2
torch                       1.10.0
torch-tb-profiler           0.3.1
torchinfo                   1.5.3
torchmetrics                0.6.2
torchvision                 0.11.1
tornado                     6.1
tqdm                        4.62.3
traitlets                   5.1.1
typing-extensions           3.10.0.2
tzdata                      2021.5
tzlocal                     4.1
universal-analytics-python3 1.1.1
urllib3                     1.26.7
uvicorn                     0.11.8
uvloop                      0.14.0
validators                  0.18.2
voxel51-eta                 0.5.3
Wand                        0.6.7
wandb                       0.12.7
watchdog                    2.1.6
wcwidth                     0.1.9
webencodings                0.5.1
websockets                  8.1
Werkzeug                    2.0.2
wheel                       0.37.0
widgetsnbextension          3.5.2
wrapt                       1.13.3
xmltodict                   0.12.0
yacs                        0.1.8
yarl                        1.7.2
yaspin                      2.1.0

Honghe avatar Dec 24 '21 16:12 Honghe

This happens when I use a python environment past version 3.7.

A fix is to consider making another environment if you can

I made an environment for Python 3.6 and the installation works successfully.

yummy-000 avatar Dec 28 '21 16:12 yummy-000

I encountered same issue and resolved it by installing version 1.6.0. This problem was probably due to a dependency confict that pip couldn't resolve.

huyfm avatar Feb 23 '22 04:02 huyfm

same issue

SilvaQ avatar Jul 11 '22 03:07 SilvaQ