cmake_packages?

Asked by Mikael Mortensen on 2013-02-06

Hi,

Do anyone know what has happened to my dolfin installation? I'm all of a sudden getting these error messages with build_module() got an unexpected keyword argument 'cmake_packages'. I've installed the latest ffc, ufc and ufl and I've rebuilt trunk dolfin. Any help appreciated.

Best regards

Mikael

      8 mesh = IntervalMesh(100, r0, r1)
----> 9 V = FunctionSpace(mesh, 'CG', 1)
     10 u = TrialFunction(V)
     11 v = TestFunction(V)

/home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/functions/functionspace.pyc in __init__(self, mesh, family, degree, form_degree, restriction)
    375
    376 # Initialize base class

--> 377 FunctionSpaceBase.__init__(self, mesh, element)
    378
    379 self.___degree = degree

/home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/functions/functionspace.pyc in __init__(self, mesh, element)
     77
     78 # JIT-compile element to get ufc_element and ufc_dofmap

---> 79 ufc_element, ufc_dofmap = jit(self._ufl_element)
     80
     81 # Instantiate DOLFIN FiniteElement and DofMap

/home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/compilemodules/jit.pyc in mpi_jit(*args, **kwargs)
     64 # Just call JIT compiler when running in serial

     65 if MPI.num_processes() == 1:
---> 66 return local_jit(*args, **kwargs)
     67
     68 # Compile first on process 0

/home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/compilemodules/jit.pyc in jit(form, form_compiler_parameters, common_cell)
    152 raise RuntimeError, "Form compiler must implement the jit function."
    153
--> 154 return jit_compile(form, parameters=p, common_cell=common_cell)

/home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc in jit(ufl_object, parameters, common_cell)
     73 # Check if we get an element or a form

     74 if isinstance(ufl_object, FiniteElementBase):
---> 75 return jit_element(ufl_object, parameters)
     76 else:
     77 return jit_form(ufl_object, parameters, common_cell)

/home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc in jit_element(element, parameters)
    242
    243 # Compile form

--> 244 compiled_form, module, form_data, prefix = jit_form(form, parameters)
    245
    246 return _extract_element_and_dofmap(module, prefix, form_data)

/home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc in jit_form(form, parameters, common_cell)
    210 cppargs = parameters["cpp_optimize_flags"].split() \
    211 if parameters["cpp_optimize"] else ["-O0"],
--> 212 cache_dir = cache_dir)
    213
    214 # Remove code

/home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ufc_utils/build.pyc in build_ufc_module(h_files, source_directory, system_headers, swig_binary, swig_path, **kwargs)
     62 system_headers = system_headers,
     63 cmake_packages = ["UFC"],
---> 64 **kwargs)
     65
     66 def extract_declarations(h_files):

TypeError: build_module() got an unexpected keyword argument 'cmake_packages'

Question information

Language:
English Edit question
Status:
Solved
For:
DOLFIN Edit question
Assignee:
No assignee Edit question
Solved by:
Mikael Mortensen
Solved:
Last query:
Last reply:
Kent-Andre Mardal (kent-and) said : #1

Try updating instant

On Wednesday, 6 February 2013, Mikael Mortensen wrote:

> New question #221211 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/221211
>
> Hi,
>
> Do anyone know what has happened to my dolfin installation? I'm all of a
> sudden getting these error messages with build_module() got an unexpected
> keyword argument 'cmake_packages'. I've installed the latest ffc, ufc and
> ufl and I've rebuilt trunk dolfin. Any help appreciated.
>
> Best regards
>
> Mikael
>
>
> 8 mesh = IntervalMesh(100, r0, r1)
> ----> 9 V = FunctionSpace(mesh, 'CG', 1)
> 10 u = TrialFunction(V)
> 11 v = TestFunction(V)
>
> /home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/functions/functionspace.pyc
> in __init__(self, mesh, family, degree, form_degree, restriction)
> 375
> 376 # Initialize base class
>
> --> 377 FunctionSpaceBase.__init__(self, mesh, element)
> 378
> 379 self.___degree = degree
>
> /home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/functions/functionspace.pyc
> in __init__(self, mesh, element)
> 77
> 78 # JIT-compile element to get ufc_element and ufc_dofmap
>
> ---> 79 ufc_element, ufc_dofmap = jit(self._ufl_element)
> 80
> 81 # Instantiate DOLFIN FiniteElement and DofMap
>
>
> /home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/compilemodules/jit.pyc
> in mpi_jit(*args, **kwargs)
> 64 # Just call JIT compiler when running in serial
>
> 65 if MPI.num_processes() == 1:
> ---> 66 return local_jit(*args, **kwargs)
> 67
> 68 # Compile first on process 0
>
>
> /home/mikael/Fenics/lpdolfin/dolfin/local/lib/python2.7/site-packages/dolfin/compilemodules/jit.pyc
> in jit(form, form_compiler_parameters, common_cell)
> 152 raise RuntimeError, "Form compiler must implement the jit
> function."
> 153
> --> 154 return jit_compile(form, parameters=p, common_cell=common_cell)
>
> /home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc
> in jit(ufl_object, parameters, common_cell)
> 73 # Check if we get an element or a form
>
> 74 if isinstance(ufl_object, FiniteElementBase):
> ---> 75 return jit_element(ufl_object, parameters)
> 76 else:
> 77 return jit_form(ufl_object, parameters, common_cell)
>
> /home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc
> in jit_element(element, parameters)
> 242
> 243 # Compile form
>
> --> 244 compiled_form, module, form_data, prefix = jit_form(form,
> parameters)
> 245
> 246 return _extract_element_and_dofmap(module, prefix, form_data)
>
> /home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ffc/jitcompiler.pyc
> in jit_form(form, parameters, common_cell)
> 210 cppargs = parameters["cpp_optimize_flags"].split() \
> 211 if parameters["cpp_optimize"] else ["-O0"],
> --> 212 cache_dir = cache_dir)
> 213
> 214 # Remove code
>
>
> /home/mikael/Fenics/dorsal/precise/unstable/lib/python2.7/site-packages/ufc_utils/build.pyc
> in build_ufc_module(h_files, source_directory, system_headers, swig_binary,
> swig_path, **kwargs)
> 62 system_headers =
> system_headers,
> 63 cmake_packages = ["UFC"],
> ---> 64 **kwargs)
> 65
> 66 def extract_declarations(h_files):
>
> TypeError: build_module() got an unexpected keyword argument
> 'cmake_packages'
>
>
> --
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
>

Takk Kent:-)