[Debian-med-packaging] Bug#1009111: Bug#1009111: python-cobra: (autopkgtest) needs update for python3.10: module 'collections' has no attribute 'Iterable'

Étienne Mollier emollier at emlwks999.eu
Thu Apr 7 20:47:29 BST 2022


Control: tags -1 + confirmed
Control: block -1 1008755

Hi Paul,

This:

> self = <optlang.glpk_interface.Model object at 0x7f121e2cd600>, stuff = []
> sloppy = False
> 
>     def add(self, stuff, sloppy=False):
>         """Add variables and constraints.
>             Parameters
>         ----------
>         stuff : iterable, Variable, Constraint
>             Either an iterable containing variables and constraints or a
> single variable or constraint.
>             sloppy : bool
>             Check constraints for variables that are not part of the model
> yet.
>             Returns
>         -------
>         None
>         """
>         if self._pending_modifications.toggle == 'remove':
>             self.update()
>             self._pending_modifications.toggle = 'add'
> >       if isinstance(stuff, collections.Iterable):
> E       AttributeError: module 'collections' has no attribute 'Iterable'
> 
> /usr/lib/python3/dist-packages/optlang/interface.py:1358: AttributeError

stems from #1008755.  I suppose I can dust off my Debian Science
hat tomorrow and patch optlang if that helps smoothen the
transition to python3.10.

Thanks for your work in coordinating this major upgrade!

Have a nice day,  :)
-- 
Étienne Mollier <emollier at emlwks999.eu>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/2, please excuse my verbosity.
On air: Inner Prospekt - Special Waste
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-med-packaging/attachments/20220407/513d564a/attachment-0001.sig>


More information about the Debian-med-packaging mailing list