$ python -c 'import six; print(six.__version__); from six.moves import range;
print("ok")'
1.2.0
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name range
Jan
On Wed, 9 Jul 2014 09:50:36 +0200
Martin Sandve Alnæs <[email protected]> wrote:
> This import works locally on my and Aslaks machine, with both python
> 2.7 and python 3.2, but the buildbots fail:
>
>
> Traceback (most recent call last):
> File "test.py", line 64, in <module>
> sys.exit(main(sys.argv[1:]))
> File "test.py", line 51, in main
> check_which_ufl()
> File "test.py", line 44, in check_which_ufl
> import ufl
> File
> "/home/buildbot/fenicsbbot/next/lib/python2.7/site-packages/ufl/__init__.py",
> line 184, in <module>
> from ufl.common import product
> File
> "/home/buildbot/fenicsbbot/next/lib/python2.7/site-packages/ufl/common.py",
> line 23, in <module>
> from six.moves import zip, range
> ImportError: cannot import name range
>
>
> Is it a version problem with the 'six' module?
> Does anyone other than the buildbots get an error from running:
>
> python -c 'import six; print(six.__version__); from six.moves import
> range; print("ok")'
> python3 -c 'import six; print(six.__version__); from six.moves import
> range; print("ok")'
>
> You need the six module (python-six in apt) installed, which is now a
> dependency of ufl and soon ffc.
>
> Martin
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics