[Pkg-freeipa-devel] Bug#1014512: freeipa: FTBFS: AttributeError: module 'collections' has no attribute 'Iterable'

Lucas Castro lucas at gnuabordo.com.br
Thu Jul 28 01:39:16 BST 2022


On Thu, 07 Jul 2022 12:51:31 +0200 Andreas Beckmann <anbe at debian.org> wrote:
 > Package: freeipa
 > Version: 4.9.8-1+exp1
 > Severity: serious
 > Tags: ftbfs
 > Justification: fails to build from source (but built successfully in 
the past)
 >
 > Hi,
 >
 > freeipa recently started to FTBFS in experimental (but not in sid) after
 > some (transitive) build dependency got upgraded:
 >
 > ...
 > Making all in css
 > make[5]: Entering directory '/build/freeipa-4.9.8/install/ui/css'
 > python3 -m lesscpy -x ../less/ipa.less > ipa.css
 > Traceback (most recent call last):
 >   File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
 >     return _run_code(code, main_globals, None,
 >   File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
 >     exec(code, run_globals)
 >   File "/usr/lib/python3/dist-packages/lesscpy/__main__.py", line 4, 
in <module>
 >     run()
 >   File "/usr/lib/python3/dist-packages/lesscpy/scripts/compiler.py", 
line 176, in run
 >     p.parse(filename=args.target, debuglevel=args.debug)
 >   File "/usr/lib/python3/dist-packages/lesscpy/lessc/parser.py", line 
153, in parse
 >     self.result = self.parser.parse(
 >   File "/usr/lib/python3/dist-packages/ply/yacc.py", line 333, in parse
 >     return self.parseopt_notrack(input, lexer, debug, tracking, 
tokenfunc)
 >   File "/usr/lib/python3/dist-packages/ply/yacc.py", line 1120, in 
parseopt_notrack
 >     p.callable(pslice)
 >   File "/usr/lib/python3/dist-packages/lesscpy/lessc/parser.py", line 
259, in p_statement_import
 >     recurse.parse(filename=filename, debuglevel=0)
 >   File "/usr/lib/python3/dist-packages/lesscpy/lessc/parser.py", line 
156, in parse
 >     self.post_parse()
 >   File "/usr/lib/python3/dist-packages/lesscpy/lessc/parser.py", line 
171, in post_parse
 >     self.result = list(utility.flatten(out))
 >   File "/usr/lib/python3/dist-packages/lesscpy/lessc/utility.py", 
line 28, in flatten
 >     if isinstance(elm, collections.Iterable) and not isinstance(elm, 
string_types):
 > AttributeError: module 'collections' has no attribute 'Iterable'
 > make[5]: *** [Makefile:660: ipa.css] Error 1
 > make[5]: Leaving directory '/build/freeipa-4.9.8/install/ui/css'
 > ...
 >
 > Andreas

Not really a freeipa related bug.

collections.Iterable
<stdin>:1: DeprecationWarning: Using or importing the ABCs from 
'collections' instead of from 'collections.abc' is deprecated since 
Python 3.3, and in 3.10 it will stop working


python3-lesscpy install 
/usr/lib/python3/dist-packages/lesscpy/lessc/utility.py file.

lessc utility.py in turn import collections.Iterable that must be 
changed to collections.abc.Iterable.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-freeipa-devel/attachments/20220727/e92bf3af/attachment-0001.htm>


More information about the Pkg-freeipa-devel mailing list