From nobody Thu Mar 14 17:41:13 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TwZRt1NpJz5DTMX for ; Thu, 14 Mar 2024 17:41:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TwZRt0M08z4GJp for ; Thu, 14 Mar 2024 17:41:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710438074; a=rsa-sha256; cv=none; b=cNsgMT850qp/cf3eonPCTPNlzoaOI5/pg1C/Uz/lJjSR8NzTdFqP+S1pOzQ5osCejWNWWt 2PPZ+b/8j1inRf15YVsq+COiJ1FqfBR2KkGzJQ0WeF8ANVTTrtImSk3LdkHxF6dgrCRtut lWarFn6DdVbs/2oXjFwzaEYTjF/heYP2YQWGA7d7ewMR0Cbp+a8gwjWihPIIGh6ADgRFYN xQMDJb/aVU8lFt+xSPCsDj7HceqCqxX63AiiykuPMUQHyECWJ6hslpuGXvMnrRGFrMDVwP 1MnKliWjkJjkGA6VL8VueNru6pIeaGAKJkw1Oi4AdTMA9z9mJ0Xum4WM67OxAQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710438074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HCsHXA/aGJNdBA+Qoujw11JYKnB2NHUSvIyPk3kBOss=; b=x3PIK42J2S622hfPudj4rrgQUzz8XDaa3nUzg8tgjFX8X/s4FxjWRrENgRTxy1+BmjyYiE iEOjQE3QyKjD6iU03GxNePeFMp97W7iiJH2Ml91niVTTihANbVU31UNQSYDe4qPfbqN7/0 kBFzBLZYpwl7aEdVaKrb/eSZTw/V6StyUhiW7mBFwJkGlRv2jLSXPeQ8L2/9XKMf0ouHM9 uMY7DruwlqGsh30Me+QU/YHCMz8vb6MoFoCM/QX2/3rptyU4rYSDdZ4Btuz+avhEc4Eyas GjHAyd2Ob2gTql8jhvXMIFGpATpLejhPQ4KUWtVzl+xWb+P/kMjG/3C9/Trm0Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TwZRs711fzctP for ; Thu, 14 Mar 2024 17:41:13 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 42EHfDfj019930 for ; Thu, 14 Mar 2024 17:41:13 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 42EHfDsM019908 for ports-bugs@FreeBSD.org; Thu, 14 Mar 2024 17:41:13 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 277700] Numpy support should be enabled by default with the graphics/py-gdal port Date: Thu, 14 Mar 2024 17:41:13 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kyle.a.taylor@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: sunpoet@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277700 Bug ID: 277700 Summary: Numpy support should be enabled by default with the graphics/py-gdal port Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: sunpoet@FreeBSD.org Reporter: kyle.a.taylor@gmail.com Flags: maintainer-feedback?(sunpoet@FreeBSD.org) Assignee: sunpoet@FreeBSD.org Hey All - I'm running into an issue with GDAL utilities packaged with the g= dal and pygdal utilities in ports (installed via pkg). This library is used to read/write geospatial datasets and includes a number of utility scripts for transforming raster data from the command line. If I run one of the gdal utility commands... e.g.: > gdal_calc.py -A 2023_30m_cdls.tif --outfile=3D2023_30m_cdls_greyscale.tif= --calc=3D"A*1" --NoDataValue=3D0 --co=3D"compress=3Dlzw" Traceback (most recent call last): File "/usr/local/bin/gdal_calc.py", line 8, in from osgeo_utils.gdal_calc import * # noqa File "/usr/local/lib/python3.9/site-packages/osgeo_utils/gdal_calc.py", l= ine 46, in from osgeo import gdal, gdal_array File "/usr/local/lib/python3.9/site-packages/osgeo/gdal_array.py", line 1= 0, in from . import _gdal_array ImportError: cannot import name '_gdal_array' from 'osgeo' (/usr/local/lib/python3.9/site-packages/osgeo/__init__.py) I get errors from _gdal_array in the osgeo python library. I did some searching, and people report this issue with the version of numpy that gdal= was built against. E.g., Gentoo folks report this same error when you build gdal from source without having numpy available. When I search for gdal and pygd= al in pkg to check the version I have installed, it's compiled without the num= py flag by default: > uname -a=20 FreeBSD *** 14.0-RELEASE-p5 FreeBSD 14.0-RELEASE-p5 #0: Tue Feb 13 23:37:36= UTC 2024=20=20=20=20 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > pkg info py39-gdal py39-gdal-3.8.2 Name : py39-gdal Version : 3.8.2 Installed on : Tue Jan 16 08:27:46 2024 MST Origin : graphics/py-gdal Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : python graphics Licenses : MIT Maintainer : sunpoet@FreeBSD.org WWW : https://gdal.org/ Comment : Python binding for GDAL Options : NUMPY : off Shared Libs required: libgdal.so.34 Annotations : FreeBSD_version: 1400097 build_timestamp: 2024-01-06T14:44:54+0000 built_by : poudriere-git-3.4.0 cpe : cpe:2.3:a:osgeo:gdal:3.8.2:::::freebsd14:x64 flavor : py39 port_checkout_unclean: no port_git_hash : 756e18783 ports_top_checkout_unclean: no ports_top_git_hash: 756e18783 repo_type : binary repository : FreeBSD Flat size : 6.26MiB Description : This port is the Python binding for GDAL (Geospatial Data Abstraction Libra= ry). > pkg info gdal-3.8.2_1 gdal-3.8.2_1 Name : gdal Version : 3.8.2_1 Installed on : Thu Feb 1 08:46:53 2024 MST Origin : graphics/gdal Architecture : FreeBSD:14:amd64 Prefix : /usr/local Categories : graphics geography Licenses : MIT Maintainer : sunpoet@FreeBSD.org WWW : https://gdal.org/ Comment : Translator library for raster geospatial data formats Options : I can't imagine a situation where a developer would want to work with py-gd= al without numpy support. And omitting this flag breaks the several of the pyt= hon utilities distributed with gdal. Can we change this so that numpy array sup= port is included by default when building py-gdal. --=20 You are receiving this mail because: You are the assignee for the bug.=