[Bug 285654] graphics/py311-fiona: TypeError: 'type' object is not subscriptable on import

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 25 Mar 2025 17:35:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285654

            Bug ID: 285654
           Summary: graphics/py311-fiona: TypeError: 'type' object is not
                    subscriptable on import
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: kyle.a.taylor@gmail.com

Experiencing issues with a few geospatial libraries imported in Python.
Py311-fiona is a swiss army knife of a library used for reading / writing
different geospatial formats. It's a widely used dependency for NumPy and
Pandas data libraries. Using the latest build from pkg (CURRENT and RELEASE), I
get :
---
root@kyle-freebsd-current-a:~ # uname -a
FreeBSD kyle-freebsd-current-a 15.0-CURRENT FreeBSD 15.0-CURRENT
main-n276047-0849f1634a70 GENERIC amd64

root@kyle-freebsd-current-a:~ # bastille create alcatraz 15.0-CURRENT
192.168.0.1

root@kyle-freebsd-current-a:~ # bastille pkg alcatraz install -y py311-fiona
py311-geopandas
[alcatraz] [1/104] Fetching png-1.6.46.pkg: 100%  316 KiB 323.4kB/s    00:01
[alcatraz] [2/104] Fetching py311-sqlite3-3.11.11_10.pkg: 100%   40 KiB 
40.8kB/s    00:01
...

root@kyle-freebsd-current-a:~ # bastille console alcatraz
[alcatraz]:
root@alcatraz:~ # python3.11
Python 3.11.11 (main, Mar  8 2025, 01:11:58) [Clang 19.1.7
(https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-g
cd7080 on freebsd15
Type "help", "copyright", "credits" or "license" for more information.
>>> import fiona
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.11/site-packages/fiona/__init__.py", line 51, in
<module>
    from fiona._vsiopener import _opener_registration
  File "fiona/_vsiopener.pyx", line 506, in init fiona._vsiopener
TypeError: 'type' object is not subscriptable

-- 
You are receiving this mail because:
You are the assignee for the bug.