This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Dolfin error with Ubuntu update

0 votes

I had FEniCS running smoothly on my Ubuntu. Unfortunately, I allowed Ubuntu to update itself today. Suddenly I have the following errors, even with basic code such as "demo_poisson.py".

How can I fix it?

Traceback (most recent call last):
  File "demo_poisson.py", line 37, in <module>
    from dolfin import *
  File "/usr/lib/python2.7/dist-packages/dolfin/__init__.py", line 4, in <module>
    import dolfin.importhandler
  File "/usr/lib/python2.7/dist-packages/dolfin/importhandler/__init__.py", line 39, in <module>
    __import__(dep)
  File "/usr/lib/python2.7/dist-packages/ffc/__init__.py", line 21, in <module>
    from ffc.jitcompiler import jit
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 63, in <module>
    instant.set_log_level("warning")
 AttributeError: 'module' object has no attribute 'set_log_level' 
closed with the note: Please send installation support requests to fenics-support@fenicsproject.org.
asked Oct 7, 2013 by xpq FEniCS Novice (660 points)
closed Oct 7, 2013 by Garth N. Wells

Are you using some nightly build of FEniCS? If so I suspect that you either need to upgrade instant or that the nightly build packages are not properly updated.

I am using FEniCS 1.2. How do I update instant?

BTW, if I simply type "python -c"import dolfin; print dolfin.version" in the terminal, it would still give me the same error on dolfin/__init___.py and ff/cjitcompiler.py as

 AttributeError: 'module' object has no attribute 'set_log_level'

Yes that is because the set_log_level is called when importing the module. Anyway, I do not know how the ubuntu repositories for FEniCS works but it looks like some bug has been introduced there, where either one of two things have happened:

  1. ffc has been accidentally upgraded to development version
  2. instant has not been updated to development version

Johannes Ring who is in charge of building FEniCS packages for ubuntu might have a better answer for you. You are probably better of sending a question to:

fenics-support@fenicsproject.org
...