Error with dolfin_compile_code

Asked by Laura del Río

Hi,
I have tried to run the poisson example obtaining the following error:

In instant.import_module_directly: Failed to import module 'dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b' from '/home/user/.instant/cache';
ImportError:/home/user/.instant/cache/dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b/_dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b.so: undefined symbol: _ZNK6dolfin8Variable3strB5cxx11Eb;
Failed to import module found in cache. Modulename: 'dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b';
Path: '/home/user/.instant/cache';
ImportError:/home/user/.instant/cache/dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b/_dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b.so: undefined symbol: _ZNK6dolfin8Variable3strB5cxx11Eb;
Traceback (most recent call last):
  File "ft01_poisson.py", line 20, in <module>
    u_D = Expression('1 + x[0]*x[0] + 2*x[1]*x[1]', degree=2)
  File "/usr/lib/python2.7/dist-packages/dolfin/functions/expression.py", line 602, in __new__
    mpi_comm=mpi_comm)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
    mpi_comm=mpi_comm)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
    mpi_comm=mpi_comm)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/compilemodule.py", line 411, in compile_extension_module
    compiled_module = instant.import_module(module_name)
  File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 171, in import_module
    return check_disk_cache(modulename, cache_dir, moduleids)
  File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 139, in check_disk_cache
    module = import_and_cache_module(path, modulename, moduleids)
  File "/usr/lib/python2.7/dist-packages/instant/cache.py", line 87, in import_and_cache_module
    instant_assert(module is not None, "Failed to import module found in cache. Modulename: '%s';\nPath: '%s';\n%s:%s;" % (modulename, path, type(e).__name__, e))
  File "/usr/lib/python2.7/dist-packages/instant/output.py", line 91, in instant_assert
    raise AssertionError(text)
AssertionError: Failed to import module found in cache. Modulename: 'dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b';
Path: '/home/user/.instant/cache';
ImportError:/home/user/.instant/cache/dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b/_dolfin_compile_code_87a153fedb1caeb1d0930b81a1b38f2be4aa457b.so: undefined symbol: _ZNK6dolfin8Variable3strB5cxx11Eb;

This happens with other examples too.
Does anyone know how to fix it?
Thank you in advanced

Question information

Language:
English Edit question
Status:
Expired
For:
FEniCS Project Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.