[Bug 280219] sysutils/iocage: "AttributeError: module 'collections' has no attribute 'Iterable'"

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jul 2024 17:31:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280219

            Bug ID: 280219
           Summary: sysutils/iocage: "AttributeError: module 'collections'
                    has no attribute 'Iterable'"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: grembo@FreeBSD.org
          Reporter: asomers@FreeBSD.org
          Assignee: grembo@FreeBSD.org
             Flags: maintainer-feedback?(grembo@FreeBSD.org)

While running with Python 3.11, when reporting certain errors, iocage will
crash like this:

$ sudo iocage update JAIL
******************************************************************************** 
fdescfs(5) is not mounted, performance may suffer. Please run:                  
mount -t fdescfs null /dev/fd                                                   
You can also permanently mount it in /etc/fstab with the following entry:       
fdescfs /dev/fd  fdescfs  rw  0  0                                              
******************************************************************************** 

Snapshot: zroot/iocage/jails/JAIL@ioc_update_RELEASE_2024-07-10_17-11-26
created. 
Updating jail...                                                                

* Updating JAIL to the latest patch level...                                    
tmp48o54bff: Cannot upgrade from a version that is not a release                
(including alpha, beta and release candidates)                                  
using tmp48o54bff. Instead, FreeBSD can be directly                             
upgraded by source or upgraded to a RELEASE/RELENG version                      
prior to running tmp48o54bff.
Currently running: RELEASE
Traceback (most recent call last):
  File "/usr/local/bin/iocage", line 10, in <module>
    sys.exit(cli())
             ^^^^^                             
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in
__call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in
main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1688, in
invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in
invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in
invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/iocage_cli/update.py", line 53,
in cli
    ioc.IOCage(jail=jail, skip_jails=skip_jails).update(**kwargs)
  File "/usr/local/lib/python3.11/site-packages/iocage_lib/iocage.py", line
2076, in update
    ioc_fetch.IOCFetch(
  File "/usr/local/lib/python3.11/site-packages/iocage_lib/ioc_fetch.py", line
917, in fetch_update
    iocage_lib.ioc_common.consume_and_log(
  File "/usr/local/lib/python3.11/site-packages/iocage_lib/ioc_common.py", line
904, in consume_and_log
    for output in filter(lambda o: any(v for v in o), exec_gen):
  File "/usr/local/lib/python3.11/site-packages/iocage_lib/ioc_exec.py", line
259, in exec_jail
    raise iocage_lib.ioc_exceptions.CommandFailed(
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/iocage_lib/ioc_exceptions.py",
line 34, in __init__
    collections.Iterable
AttributeError: module 'collections' has no attribute 'Iterable'

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