Getting error: The module did not compile with command 'make VERBOSE=1'


700
views
0
11 months ago by
Alex  
Hi, when I try to compile the following code:

from dolfin import *
import numpy as np

l = 20.0e-3 #side of cube
numElems = 18 #number of finite elements per side

# Define function space for system
deg = 1
mesh = BoxMesh(Point(0.0,0.0,0.0), Point(l,l,l), numElems,numElems,numElems)
P1 = VectorElement('Lagrange', tetrahedron, deg)
P2 = FiniteElement('Lagrange', tetrahedron, deg)
element = MixedElement([P1, P2])
V = FunctionSpace(mesh, element)

# Define test functions
v_u, v_c = TestFunctions(V)

# Define functions for velocity and concentrations with initial conditions
w = Function(V)
e_u0 = Expression(('0.0', '0.0', '0.0'), degree=deg)

I'm getting:
Calling DOLFIN just-in-time (JIT) compiler, this may take some time.
--- Instant: compiling ---
In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/alex/.cache/instant/python2.7/error/dolfin_ce5903fee15b2ab281a2f75e55138c03dacb9aab/compile.log'
Traceback (most recent call last):
File "example.py", line 39, in <module>
e_u0 = Expression(('0.0', '0.0', '0.0'), degree=deg)
File "/usr/lib/python2.7/dist-packages/dolfin/functions/expression.py", line 679, in __new__
mpi_comm=kwargs.get("mpi_comm"))
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 266, in compile_expressions
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 183, in compile_expression_code
mpi_comm=mpi_comm)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 70, in mpi_jit
return local_jit(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/compilemodule.py", line 603, in compile_extension_module
**instant_kwargs)
File "/usr/lib/python2.7/dist-packages/instant/build.py", line 577, in build_module
build_system)
File "/usr/lib/python2.7/dist-packages/instant/build.py", line 170, in recompile
instant_error(msg % (cmd, compile_log_filename_dest))
File "/usr/lib/python2.7/dist-packages/instant/output.py", line 96, in instant_error
raise RuntimeError(text)
RuntimeError: In instant.recompile: The module did not compile with command 'make VERBOSE=1', see '/home/alex/.cache/instant/python2.7/error/dolfin_ce5903fee15b2ab281a2f75e55138c03dacb9aab/compile.log'

The error file says that vtk was not installed or was moved. What version of vtk is needed for fenics? Can that be the problem? The log file is attached: compile.log (19.03 KB)

 

Community: FEniCS Project
1
Try running instant-clean.

Which version of FEniCS are you using, and was DOLFIN compiled with VTK enabled? VTK is not required and has been removed from the development version.
written 11 months ago by Garth Wells  
Hi Garth,

    I uninstalled fenics from Ubuntu using apt-get remove and using purge. Then I installed it via the terminal using the steps on the fenics website for Ubuntu:
https://fenicsproject.org/download/

I'm still getting the same error. I read in two different places about using instant-clean; what do you mean? I tried typing in it in the terminal and it doesn't work. What should I type?

Thank you for the help
written 11 months ago by Alex  

1 Answer


2
11 months ago by
Alex  
Got it working:

I had to uninstall python 2.7, used autoremove. re-installed python 2.7 and then fenics
Please login to add an answer/comment or follow this question.

Similar posts:
Search »