doctr icon indicating copy to clipboard operation
doctr copied to clipboard

Conflict with shapely dependencies on Windows

Open matthiasmindee opened this issue 3 years ago • 6 comments

Bug description

I installed gtk for windows before, it was in the path and was installed correctly. It seems that shapely can't be correctly installed with pip.

Code snippet to reproduce the bug

pip install "python-doctr[tf]"

Error traceback

Collecting python-doctr[tf] Downloading python_doctr-0.4.1-py3-none-any.whl (169 kB) |████████████████████████████████| 169 kB 2.2 MB/s Collecting weasyprint<53.0,>=52.2 Downloading WeasyPrint-52.5-py3-none-any.whl (365 kB) |████████████████████████████████| 365 kB 6.8 MB/s Collecting numpy>=1.16.0 Downloading numpy-1.21.4-cp310-cp310-win_amd64.whl (14.0 MB) |████████████████████████████████| 14.0 MB 6.4 MB/s Collecting Pillow>=8.3.2 Downloading Pillow-8.4.0-cp310-cp310-win_amd64.whl (3.2 MB) |████████████████████████████████| 3.2 MB 6.4 MB/s Collecting PyMuPDF<1.18.11,>=1.16.0 Downloading PyMuPDF-1.18.10.tar.gz (310 kB) |████████████████████████████████| 310 kB ... Collecting tqdm>=4.30.0 Downloading tqdm-4.62.3-py2.py3-none-any.whl (76 kB) |████████████████████████████████| 76 kB 5.1 MB/s Collecting mplcursors>=0.3 Downloading mplcursors-0.5.1.tar.gz (88 kB) |████████████████████████████████| 88 kB ... Collecting shapely>=1.6.0 Downloading Shapely-1.8.0.tar.gz (278 kB) |████████████████████████████████| 278 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_1ebad335653041c69bf32b37a6d25e01\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_1ebad335653041c69bf32b37a6d25e01\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-0hv6o_on' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_1ebad335653041c69bf32b37a6d25e01
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_1ebad335653041c69bf32b37a6d25e01\setup.py", line 74, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_1ebad335653041c69bf32b37a6d25e01\shapely_buildcfg.py", line 204, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/1c/0c/454c80f71bd5ece52fb06d2905bf956b9122f4be539d5ae5df4b10dd3e14/Shapely-1.8.0.tar.gz#sha256=f5307ee14ba4199f8bbcf6532ca33064661c1433960c432c84f0daa73b47ef9c (from https://pypi.org/simple/shapely/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.7.1.tar.gz (383 kB) |████████████████████████████████| 383 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d63cc9cc9d1b49768e58296d8faedf04\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d63cc9cc9d1b49768e58296d8faedf04\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-5wudhvkk' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d63cc9cc9d1b49768e58296d8faedf04
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d63cc9cc9d1b49768e58296d8faedf04\setup.py", line 85, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d63cc9cc9d1b49768e58296d8faedf04\shapely_buildcfg.py", line 205, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/42/f3/0e1bc2c4f15e05e30c6b99322b9ddaa2babb3f43bc7df2698efdc1553439/Shapely-1.7.1.tar.gz#sha256=1641724c1055459a7e2b8bbe47ba25bdc89554582e62aec23cb3f3ca25f9b129 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.7.0.tar.gz (349 kB) |████████████████████████████████| 349 kB 6.4 MB/s ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_500b0b5f79d043f3a07eae51817f4d88\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_500b0b5f79d043f3a07eae51817f4d88\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-yinc5s99' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_500b0b5f79d043f3a07eae51817f4d88
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_500b0b5f79d043f3a07eae51817f4d88\setup.py", line 85, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_500b0b5f79d043f3a07eae51817f4d88\shapely_buildcfg.py", line 205, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/44/ec/4eddbf9d17a917c51fb4ad159aa7137f506681e91ab559cf87d120e1d78d/Shapely-1.7.0.tar.gz#sha256=e21a9fe1a416463ff11ae037766fe410526c95700b9e545372475d2361cc951e (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.4.post2.tar.gz (225 kB) |████████████████████████████████| 225 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_59ebf494056e497287ab0c1eb7af1280\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_59ebf494056e497287ab0c1eb7af1280\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-j_9n9eb6' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_59ebf494056e497287ab0c1eb7af1280
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_59ebf494056e497287ab0c1eb7af1280\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_59ebf494056e497287ab0c1eb7af1280\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/a2/fb/7a7af9ef7a35d16fa23b127abee272cfc483ca89029b73e92e93cdf36e6b/Shapely-1.6.4.post2.tar.gz#sha256=c4b87bb61fc3de59fc1f85e71a79b0c709dc68364d9584473697aad4aa13240f (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.4.post1.tar.gz (224 kB) |████████████████████████████████| 224 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d94e52949d184a6289cb4a4cc25892c3\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d94e52949d184a6289cb4a4cc25892c3\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-l8oz6ley' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d94e52949d184a6289cb4a4cc25892c3
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d94e52949d184a6289cb4a4cc25892c3\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_d94e52949d184a6289cb4a4cc25892c3\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/7d/3c/0f09841db07aabf9cc387662be646f181d07ed196e6f60ce8be5f4a8f0bd/Shapely-1.6.4.post1.tar.gz#sha256=30df7572d311514802df8dc0e229d1660bc4cbdcf027a8281e79c5fc2fcf02f2 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.4.tar.gz (224 kB) |████████████████████████████████| 224 kB 6.8 MB/s ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_9837db86587c4d6b920d6e843529d53c\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_9837db86587c4d6b920d6e843529d53c\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-mlp95b33' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_9837db86587c4d6b920d6e843529d53c
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_9837db86587c4d6b920d6e843529d53c\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_9837db86587c4d6b920d6e843529d53c\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/55/60/d04f6cf9834125f1d205cd43d14ebcf58d2cbc74d6e702d1ea59b0bbe2dd/Shapely-1.6.4.tar.gz#sha256=b10bc4199cfefcf1c0e5d932eac89369550320ca4bdf40559328d85f1ca4f655 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.3.tar.gz (223 kB) |████████████████████████████████| 223 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_ef0bc79201d44d1392e310d89207b8f9\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_ef0bc79201d44d1392e310d89207b8f9\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-vxbf9cqe' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_ef0bc79201d44d1392e310d89207b8f9
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_ef0bc79201d44d1392e310d89207b8f9\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_ef0bc79201d44d1392e310d89207b8f9\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/c0/10/1457c46e20b509108a32a5776141d78d410161dae8ab8da74efe67c530eb/Shapely-1.6.3.tar.gz#sha256=14152f111c7711fc6756fd538ec12fc8cdde7419f869b244922f71f61b2a6c6b (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.2.post1.tar.gz (221 kB) |████████████████████████████████| 221 kB 6.4 MB/s ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_af6242b280e147e6be1c0ae3c8de0b0a\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_af6242b280e147e6be1c0ae3c8de0b0a\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-moxiegoc' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_af6242b280e147e6be1c0ae3c8de0b0a
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_af6242b280e147e6be1c0ae3c8de0b0a\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_af6242b280e147e6be1c0ae3c8de0b0a\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/60/c4/392aff1cb73f20d3cf4bb01a9eeb3eb5db7a167c094d69beca402b9a5846/Shapely-1.6.2.post1.tar.gz#sha256=07fba518e76b3276558f62a5829bdfa476f790cdef752383ccdc8c66b04b0899 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.2.tar.gz (220 kB) |████████████████████████████████| 220 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_5bb200365871412e9e8cfeeb81dadbfa\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_5bb200365871412e9e8cfeeb81dadbfa\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-9t2ijubu' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_5bb200365871412e9e8cfeeb81dadbfa
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_5bb200365871412e9e8cfeeb81dadbfa\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_5bb200365871412e9e8cfeeb81dadbfa\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/bf/66/302e857b29457ab683ba8f476a385dca1212b6958ed105c2b195d3f87fdb/Shapely-1.6.2.tar.gz#sha256=0ed0db2ddc10e092de30c2ddae28cc8bd2543601b6af83877b76c3280f2537c6 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.1.tar.gz (216 kB) |████████████████████████████████| 216 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_b03e239d4bb6481faaeba3d96ce401e4\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_b03e239d4bb6481faaeba3d96ce401e4\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-oafbkhco' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_b03e239d4bb6481faaeba3d96ce401e4
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_b03e239d4bb6481faaeba3d96ce401e4\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_b03e239d4bb6481faaeba3d96ce401e4\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/97/33/d299b42241bf80fce900c6da3a8f4e40f909e2c936e690f749c2ac2fb05d/Shapely-1.6.1.tar.gz#sha256=5ae137eb95ff615be399a285cf447913f845b0224e03d1167f638867eaccd0c7 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Downloading Shapely-1.6.0.tar.gz (214 kB) |████████████████████████████████| 214 kB ... ERROR: Command errored out with exit status 1: command: 'C:\Users\tech021\miniconda3\envs\venv\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_fabb38a5540b43e3902c3bb5d6a20e89\setup.py'"'"'; file='"'"'C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_fabb38a5540b43e3902c3bb5d6a20e89\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\tech021\AppData\Local\Temp\pip-pip-egg-info-m2qhwxqx' cwd: C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_fabb38a5540b43e3902c3bb5d6a20e89
Complete output (9 lines): Traceback (most recent call last): File "", line 1, in File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_fabb38a5540b43e3902c3bb5d6a20e89\setup.py", line 80, in from shapely.buildcfg import geos_version_string, geos_version,
File "C:\Users\tech021\AppData\Local\Temp\pip-install-gxzrb3d8\shapely_fabb38a5540b43e3902c3bb5d6a20e89\shapely_buildcfg.py", line 200, in lgeos = CDLL("geos_c.dll") File "C:\Users\tech021\miniconda3\envs\venv\lib\ctypes_init
.py", line 374, in init self._handle = _dlopen(self._name, mode) FileNotFoundError: Could not find module 'geos_c.dll' (or one of its dependencies). Try using the full path with constructor syntax. ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/8b/18/d01334652244d5b9e3964b305ae9ce3e6d747345ec0767c4e0ea482d077a/Shapely-1.6.0.tar.gz#sha256=34d07cb277a5acf9ca5583a5b926678c58fb512d4fb4fcccbf3992e995b7ef60 (from https://pypi.org/simple/shapely/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. Collecting python-doctr[tf] Downloading python_doctr-0.4.0-py3-none-any.whl (161 kB) |████████████████████████████████| 161 kB 6.8 MB/s Downloading python_doctr-0.3.1-py3-none-any.whl (156 kB) |████████████████████████████████| 156 kB ... Collecting Pillow<8.3.0,>=8.0.0 Downloading Pillow-8.2.0.tar.gz (47.9 MB) |████████████████████████████████| 47.9 MB 6.4 MB/s Collecting python-doctr[tf] Downloading python_doctr-0.3.0-py3-none-any.whl (131 kB) |████████████████████████████████| 131 kB 6.8 MB/s Collecting matplotlib>=3.1.0 Downloading matplotlib-3.5.1-cp310-cp310-win_amd64.whl (7.2 MB) |████████████████████████████████| 7.2 MB 6.4 MB/s Collecting python-doctr[tf] Downloading python_doctr-0.2.1-py3-none-any.whl (83 kB) |████████████████████████████████| 83 kB 1.2 MB/s WARNING: python-doctr 0.2.1 does not provide the extra 'tf' Downloading python_doctr-0.2.0-py3-none-any.whl (81 kB) |████████████████████████████████| 81 kB ... WARNING: python-doctr 0.2.0 does not provide the extra 'tf' Collecting rapidfuzz>=1.0.0 Downloading rapidfuzz-1.9.1-cp310-cp310-win_amd64.whl (549 kB) |████████████████████████████████| 549 kB ... Collecting python-doctr[tf] Downloading python_doctr-0.1.1-py3-none-any.whl (53 kB) |████████████████████████████████| 53 kB ... WARNING: python-doctr 0.1.1 does not provide the extra 'tf' Downloading python_doctr-0.1.0-py3-none-any.whl (45 kB) |████████████████████████████████| 45 kB 3.2 MB/s WARNING: python-doctr 0.1.0 does not provide the extra 'tf' ERROR: Cannot install python-doctr[tf]==0.1.0, python-doctr[tf]==0.1.1, python-doctr[tf]==0.2.0, python-doctr[tf]==0.2.1, python-doctr[tf]==0.3.0, python-doctr[tf]==0.3.1, python-doctr[tf]==0.4.0 and python-doctr[tf]==0.4.1 because these package versions have conflicting dependencies.

The conflict is caused by: python-doctr[tf] 0.4.1 depends on shapely>=1.6.0 python-doctr[tf] 0.4.0 depends on shapely>=1.6.0 python-doctr[tf] 0.3.1 depends on shapely>=1.6.0 python-doctr[tf] 0.3.0 depends on shapely>=1.6.0 python-doctr[tf] 0.2.1 depends on shapely>=1.6.0 python-doctr[tf] 0.2.0 depends on shapely>=1.6.0 python-doctr[tf] 0.1.1 depends on shapely>=1.6.0 python-doctr[tf] 0.1.0 depends on shapely>=1.6.0

To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Environment

DocTR version: N/A TensorFlow version: N/A PyTorch version: N/A (torchvision N/A) OpenCV version: N/A OS: Microsoft Windows 10 Home Python version: 3.10.0 Is CUDA available (TensorFlow): N/A Is CUDA available (PyTorch): N/A CUDA runtime version: Could not collect GPU models and configuration: Could not collect Nvidia driver version: Could not collect cuDNN version: Could not collect

matthiasmindee avatar Dec 14 '21 15:12 matthiasmindee

Hi @matthiasmindee, thanks for spotting that. Do you think downgrading the min. Shapely version in the requirements could fix that conflict ?

charlesmindee avatar Feb 11 '22 17:02 charlesmindee

Hmm, good question, maybe but if it impedes the performance and only affects me I'm not so sure it's a good idea wdyt @charlesmindee ?

matthiasmindee avatar Feb 16 '22 09:02 matthiasmindee

Hey there :wave:

From what I gather here, specifically on Windows env, we need to exclude some versions of shapely? If so, especially if only the version specifier modification isn't too heavy, and it's compatible on other OS, we could probably update the base requirements :)

What do you think? @matthiasmindee did you manage to find a version of shapely that allowed you to install the library properly?

fg-mindee avatar Mar 07 '22 11:03 fg-mindee

Any update @matthiasmindee ? :)

fg-mindee avatar Mar 10 '22 14:03 fg-mindee

Hi @fg-mindee ! I had no time to test this again, I'll test it whenever I have time to do so ! Will keep you posted !

matthiasmindee avatar Mar 14 '22 16:03 matthiasmindee

ping @matthiasmindee :) Mind checking that again please? :pray:

frgfm avatar Jun 28 '22 15:06 frgfm

Hi @matthiasmindee 👋 , does the issue still exists ?

felixdittrich92 avatar Sep 10 '22 18:09 felixdittrich92

Hi @fg-mindee @felixdittrich92, this issue seems to be resolved on my side. I let you close the issue ! Thx for your time !

matthiasmindee avatar Sep 26 '22 08:09 matthiasmindee

Nice ! Thanks for your response @matthiasmindee :hugs:

felixdittrich92 avatar Sep 26 '22 08:09 felixdittrich92