Problem while installing trdg

#353 · open · 4 comments

View on GitHub ↗

lokeshnaik808

When using Python 3 and pip 24.1.2 to install trdg in Google colab; following error is observed: Is there any workout for this one? ``` Collecting trdg Using cached trdg-1.8.0-py3-none-any.whl.metadata (9.0 kB) Requirement already satisfied: pillow>=7.0.0 in /usr/local/lib/python3.10/dist-packages (from trdg) (9.4.0) Requirement already satisfied: requests>=2.20.0 in /usr/local/lib/python3.10/dist-packages (from trdg) (2.31.0) Requirement already satisfied: opencv-python>=4.2.0.32 in /usr/local/lib/python3.10/dist-packages (from trdg) (4.10.0.84) Requirement already satisfied: tqdm>=4.23.0 in /usr/local/lib/python3.10/dist-packages (from trdg) (4.66.4) Collecting wikipedia>=1.4.0 (from trdg) Using cached wikipedia-1.4.0.tar.gz (27 kB) Preparing metadata (setup.py) ... done Collecting diffimg==0.2.3 (from trdg) Using cached diffimg-0.2.3.tar.gz (4.1 kB) Preparing metadata (setup.py) ... done Collecting arabic-reshaper==2.1.3 (from trdg) Using cached arabic_reshaper-2.1.3-py3-none-any.whl.metadata (12 kB) WARNING: Ignoring version 2.1.3 of arabic-reshaper since it has invalid metadata: Requested arabic-reshaper==2.1.3 from https://files.pythonhosted.org/packages/47/27/7b9b824f5342d8ee180027333f2e15842ea36f5bc2d3d24a4e6bb31fb596/arabic_reshaper-2.1.3-py3-none-any.whl (from trdg) has invalid metadata: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier fonttools (>=3.0<4.0) ; (python_version < "3") and extra == 'with-fonttools' ~~~~~~^ Please use pip<24.1 if you need to use this version. INFO: pip is looking at multiple versions of trdg to determine which version is compatible with other requirements. This could take a while. Collecting trdg Using cached trdg-1.7.0-py3-none-any.whl.metadata (9.0 kB) Collecting numpy<1.17,>=1.16.4 (from trdg) Using cached numpy-1.16.6.zip (5.1 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: beautifulsoup4>=4.6.0 in /usr/local/lib/python3.10/dist-packages (from trdg) (4.12.3) Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.10/dist-packages (from beautifulsoup4>=4.6.0->trdg) (2.5) INFO: pip is looking at multiple versions of opencv-python to determine which version is compatible with other requirements. This could take a while. Collecting opencv-python>=4.2.0.32 (from trdg) Using cached opencv_python-4.10.0.82-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB) Using cached opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB) Using cached opencv_python-4.8.1.78-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB) Using cached opencv_python-4.8.0.76-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB) Using cached opencv_python-4.8.0.74-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (19 kB) Using cached opencv_python-4.7.0.72-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB) Using cached opencv_python-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB) INFO: pip is still looking at multiple versions of opencv-python to determine which version is compatible with other requirements. This could take a while. Using cached opencv_python-4.5.5.64-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB) Using cached opencv_python-4.5.4.60-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (18 kB) Using cached opencv-python-4.5.3.56.tar.gz (89.2 MB) error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. Installing build dependencies ... error error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. ```

Comments

truong04

i have the same issue too, did you fix it

lokeshnaik808

Not really, but currently I am using pip install trdg==1.6.0 as a workaround and it works.

DesBw

'distutils has been removed from python 3.12 onwards.

leduy-it

Please downgrade pip by running: ```pip install pip==23.2``` This should resolve the issue.