Hello, I recently reinstalled firedrake on my Mac OS X because I saw there was an update recently. Unfortunately, now I am not able to import firedrake.
import firedrake
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "firedrake/__init__.py", line 31, in <module> from firedrake.assemble import * File "firedrake/assemble.py", line 8, in <module> from firedrake import assembly_cache File "firedrake/assembly_cache.py", line 41, in <module> from firedrake.parameters import parameters File "firedrake/parameters.py", line 4, in <module> from tsfc.constants import default_parameters File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/__init__.py", line 3, in <module> from tsfc.driver import compile_form # noqa File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/driver.py", line 10, in <module> from tsfc.quadrature import create_quadrature, QuadratureRule File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/quadrature.py", line 31, in <module> from FIAT.reference_element import UFCInterval, UFCTriangle, UFCTetrahedron, \ ImportError: cannot import name FiredrakeQuadrilateral I am sorry for the bother but any help would be greatly appreciated. I also want to update it on my ubuntu machine but thought I should do one at a time. Cheers, Francis
Minor correction. I remembered from previous installations that I should clear my PYTHONPATH before starting firedrake. I did that and then got a slightly different error.
import firedrake
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/firedrake/__init__.py", line 19, in <module> import ufl File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/ufl/__init__.py", line 193, in <module> from ufl.utils.sequences import product File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/ufl/utils/sequences.py", line 21, in <module> from six.moves import zip ImportError: No module named six.moves It can import petsc4y and other stuff, just not sure what six.moves is and why the module is not found. Francis
By reinstall, do you mean that you have wiped out your old Firedrake installation and then run firedrake-install? Or did you just run firedrake-update from your existing installation? How old was approximately your old installation?
On 9 Apr 2016, at 16:50, Francis Poulin <fpoulin@uwaterloo.ca> wrote:
Hello,
I recently reinstalled firedrake on my Mac OS X because I saw there was an update recently. Unfortunately, now I am not able to import firedrake.
import firedrake
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "firedrake/__init__.py", line 31, in <module>
from firedrake.assemble import *
File "firedrake/assemble.py", line 8, in <module>
from firedrake import assembly_cache
File "firedrake/assembly_cache.py", line 41, in <module>
from firedrake.parameters import parameters
File "firedrake/parameters.py", line 4, in <module>
from tsfc.constants import default_parameters
File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/__init__.py", line 3, in <module>
from tsfc.driver import compile_form # noqa
File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/driver.py", line 10, in <module>
from tsfc.quadrature import create_quadrature, QuadratureRule
File "/Users/fpoulin/software/firedrake/lib/python2.7/site-packages/tsfc/quadrature.py", line 31, in <module>
from FIAT.reference_element import UFCInterval, UFCTriangle, UFCTetrahedron, \
ImportError: cannot import name FiredrakeQuadrilateral
I am sorry for the bother but any help would be greatly appreciated.
I also want to update it on my ubuntu machine but thought I should do one at a time.
Cheers, Francis
_______________________________________________ firedrake mailing list firedrake@imperial.ac.uk <mailto:firedrake@imperial.ac.uk> https://mailman.ic.ac.uk/mailman/listinfo/firedrake <https://mailman.ic.ac.uk/mailman/listinfo/firedrake>
participants (2)
-
Francis Poulin
-
Miklós Homolya