Conan: [bug] module 'six.moves' has no attribute 'collections_abc'

Created on 7 Aug 2020  路  5Comments  路  Source: conan-io/conan

Environment Details (include every applicable attribute)

  • Operating System+version: Windows
  • Compiler+version: Visual Studio
  • Conan version: 1.28.0
  • Python version: 3.6.3

We got the error somewhere during conan install. I found six.moves.collections_abc in https://github.com/conan-io/conan/blob/1.28.0/conans/util/misc.py. collections_abc was added to six in version 1.13 but conan currently depends on six >=1.5.

low high queue bug

All 5 comments

Hi! Thanks for reporting.
Yes, it looks like collections_abc was introduced in six 1.13 but Conan requires six>=1.10.0,<=1.14.0 not >=1.5, right?
Anyway it looks like we should adjust the range.

Or we could replace:

if isinstance(value, six.moves.collections_abc.Iterable):
#for something like
if isinstance(value, (list, tuple, set)):

It is not that critical to support any abstraction of Iterable for this case

I've just got the same error with conan 1.28.1

By manually upgrading astroid to 2.4.0 and six to 1.13, the problem got away.

Does it make sense to backport #7545 to Conan 1.28.2, @jgsogo ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liberforce picture liberforce  路  3Comments

zomeck picture zomeck  路  3Comments

rconde01 picture rconde01  路  3Comments

zlalanne picture zlalanne  路  3Comments

uilianries picture uilianries  路  3Comments