Bug 286033 - graphics/py-fiona: version 1.10.1 fails to even import
Summary: graphics/py-fiona: version 1.10.1 fails to even import
Status: Closed DUPLICATE of bug 285654
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Loïc Bartoletti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-11 07:42 UTC by Thomas Guymer
Modified: 2025-04-26 04:08 UTC (History)
1 user (show)

See Also:
lbartoletti: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Guymer 2025-04-11 07:42:02 UTC
The recent update now means that it fails to even import. For example:

> python3.11 -c "import fiona"
Traceback (most recent call last):
  File "<string>", 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

Does this work for anyone else?
Comment 1 Rainer Hurling freebsd_committer freebsd_triage 2025-04-12 17:43:11 UTC
(In reply to Thomas Guymer from comment #0)

Hi Thomas,
For me, it works as expected. I am running a recent 15.0-CURRENT amd64 with all ports up to date.


#python3
Python 3.11.11 (main, Dec 12 2024, 18:02:14) [Clang 19.1.5 (https://github.com/llvm/llvm-project.git llvmorg-19.1.5-0-gab4b5a on freebsd15
Type "help", "copyright", "credits" or "license" for more information.
>>> import fiona
>>> 


HTH,
Rainer
Comment 2 Thomas Guymer 2025-04-14 17:51:35 UTC
(In reply to Rainer Hurling from comment #1)

This weekend I just updated my system and reinstalled all packages using Poudriere. I still get the same behaviour:

> freebsd-version 
14.2-RELEASE-p3
> python3.11
Python 3.11.11 (main, Apr 13 2025, 07:57:04) [Clang 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2 on freebsd14
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
Comment 3 Loïc Bartoletti freebsd_committer freebsd_triage 2025-04-15 08:13:35 UTC
Same for me. I thought fix it with my last patch. It worked (c)(tm) in my jail, but not on another machine with pkg...

I'll take a look this week
Comment 4 Loïc Bartoletti freebsd_committer freebsd_triage 2025-04-18 20:12:52 UTC
(In reply to Loïc Bartoletti from comment #3)
mmm I forgot there is a patch to test here https://bz-attachments.freebsd.org/attachment.cgi?id=259063
Comment 5 Rainer Hurling freebsd_committer freebsd_triage 2025-04-20 14:57:42 UTC
(In reply to Loïc Bartoletti from comment #4)

Hi Loïc,
Please have a look at bug #285654, comment #4 ;)
Comment 6 Loïc Bartoletti freebsd_committer freebsd_triage 2025-04-26 04:08:20 UTC

*** This bug has been marked as a duplicate of bug 285654 ***