From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by sourceware.org (Postfix) with ESMTPS id 2BB2A385DC35 for ; Wed, 13 Sep 2023 00:58:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2BB2A385DC35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1a28de15c8aso4784549fac.2 for ; Tue, 12 Sep 2023 17:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694566734; x=1695171534; darn=cygwin.com; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=0PtoI/P15XHAKcDnwD52Ki/9y8e8vEdz5cSQaIBXhUI=; b=SkdNbCkB+VRHrIy3M3SBLO8IW5rT4889hBhEZw3F9z9ACG/wjnErI9Mde7jx7T0SHn 2UlyfwvnM/fSvGw9kqFIAQnIA4d47BKj7hC9G7h62D0md5gdxKjYxFF4vN6papS7zCAZ a+ZCD3QCkpfN2Hkkoy686Dc0P0ulbA0AxAogFEK8P/+aGKJq3mhaEg3GOqPlEwSb8H2s XShqsbmVHDQMf01M01rgoyG9RpP08L23t+JwA7qXcKcu5eFii9d6ZZJTYu0G2el3jOgO e4vdj2sR2gRkF/vjppNFIO01K1oIDtHMeNK0aq4XBmFAAt6KJ5mKu57NB04b3RjU90bY h/mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694566734; x=1695171534; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0PtoI/P15XHAKcDnwD52Ki/9y8e8vEdz5cSQaIBXhUI=; b=ildbc4Vjp5+DQeanLKs0B6G7cnuDIo/CASx291kMJHJyJWYjFdQq/KNGQ46SPA4GLI m0L+idoecxbgNv0pZolMhWjcPLyLBGXXlQcihgwnKAPFdkhqxOdL3/NaaBQSLMuEKFhG MsgV6Y5X+E3qO/lH27coJsT+BsMWCsS4ZP90sZ8EjOb8JUZDUWcqJowulmOJiZOZeO9F yPD+44PALtKEu+fkNp3lbWjan1EIOI9b3oDWSfqtflwPtzHAlHF+84zhjd3DLiA/xbr7 RpFeuhJy1QGBFrRsUYQGwYujl6qCD2L3D3Vn4/jIoLpMVbZ6AeRix/eqxezm6NC6FA3p Xk8Q== X-Gm-Message-State: AOJu0YxA30JdiR/dK/lJa5OKTaTHbcRM/+VAMt7QdEtDgD5LIvgbxSBK 0KCjO1uIjcQcSBmp4dH8ujFK8FDGFSP5lK+xCIQal+IExQluWQ== X-Google-Smtp-Source: AGHT+IHCvWlwO3yvQcz6+SA4xlLgC5kXBEArRh2RPKR7o768y5xLZE5PJ4b6w1RkTlu4vws8SrXID3t2XoWb2UOAkRc= X-Received: by 2002:a05:6870:32d3:b0:1bf:4a66:d54f with SMTP id r19-20020a05687032d300b001bf4a66d54fmr1272060oac.56.1694566733649; Tue, 12 Sep 2023 17:58:53 -0700 (PDT) MIME-Version: 1.0 From: Joel Breazeale Date: Tue, 12 Sep 2023 19:58:40 -0500 Message-ID: Subject: Python 3.9 shapely package build failed To: cygwin@cygwin.com Content-Type: multipart/alternative; boundary="00000000000035198806053310eb" X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000035198806053310eb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The shapely Python 3.9 package is failing to build. Please see the messages in red and the one in green below: [bin]$ /usr/local/bin/pip3.9 install shapely Collecting shapely Using cached shapely-2.0.1.tar.gz (275 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy>=3D1.14 in /usr/local/lib/python3.9/site-packages (from shapely) (1.25.2) Building wheels for collected packages: shapely Building wheel for shapely (pyproject.toml) ... error error: *subprocess-exited-with-error* =C3=97 Building wheel for shapely (pyproject.toml) did not run successful= ly. =E2=94=82 exit code: 1 =E2=95=B0=E2=94=80> [103 lines of output] :8: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Could not find geos-config executable. Either append the path to geos-config to PATH or manually provide the include_dirs, library_dirs, libraries and other link args for compiling against a GEOS version >=3D3.5. running bdist_wheel running build running build_py creating build creating build/lib.cygwin-3.4.9-x86_64-cpython-39 creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/affinity.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/constructive.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/coordinates.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/coords.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/creation.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/decorators.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/errors.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/geos.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/io.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/linear.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/measurement.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/ops.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/plotting.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/predicates.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/prepared.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/set_operations.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/speedups.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/strtree.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/testing.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/validation.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/wkb.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/wkt.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/_enum.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/_geometry.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/_ragged_array.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/_version.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/algorithms copying shapely/algorithms/cga.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/algorithms copying shapely/algorithms/polylabel.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/algorithms copying shapely/algorithms/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/algorithms creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/base.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/collection.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/conftest.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/geo.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/linestring.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/multilinestring.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/multipoint.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/multipolygon.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/point.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/polygon.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry copying shapely/geometry/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/geometry creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/common.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_constructive.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_coordinates.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_creation.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_creation_indices.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_geometry.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_io.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_linear.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_measurement.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_misc.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_plotting.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_predicates.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_ragged_array.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_set_operations.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_strtree.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/test_testing.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests copying shapely/tests/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/vectorized copying shapely/vectorized/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/vectorized creating build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_collection.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_coords.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_decimal.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_emptiness.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_format.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_geometry_base.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_hash.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_linestring.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_multi.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_multilinestring.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_multipoint.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_multipolygon.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_point.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/test_polygon.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/tests/geometry/__init__.py -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/tests/geometry copying shapely/_geos.pxd -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely copying shapely/_pygeos_api.pxd -> build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely UPDATING build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/_version.py set build/lib.cygwin-3.4.9-x86_64-cpython-39/shapely/_version.py to '2.0.1' running build_ext building 'shapely.lib' extension creating build/temp.cygwin-3.4.9-x86_64-cpython-39 creating build/temp.cygwin-3.4.9-x86_64-cpython-39/src gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/include/python3.9 -I/tmp/pip-build-env-udfc5yaz/overlay/lib/python3.9/site-packages/numpy/cor= e/include -c src/c_api.c -o build/temp.cygwin-3.4.9-x86_64-cpython-39/src/c_api.o In file included from src/c_api.h:22, from src/c_api.c:15: src/geos.h:15:10: fatal error: geos_c.h: No such file or directory 15 | #include | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for shapely Failed to build shapely ERROR: Could not build wheels for shapely, which is required to install pyproject.toml-based projects [bin]$ I presume the inability to find geos-config then caused geos_c.h to not be able to be found. I have shapely installed and working under Homebrew (Python 3.11.5), Oracle Linux 9.2 under VirtualBox (Python 3.9.16) and Oracle Linux 8 (Python 3.11.4), just not under cygwin. What do you think is the fix for this issue? --00000000000035198806053310eb--