FFC

UnboundLocalError: local variable 'output' referenced before assignment

Bug #1116005 reported by Johannes Ring on 2013-02-05
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
FFC
Undecided
Unassigned
Instant
Fix Released
Medium
Johannes Ring

Bug Description

One of the buildbots (http://fenicsproject.org:8010/builders/dolfin-trunk-full-osx-10.6/builds/55) reports the following error:

Running Python demo ./../../demo/pde/poisson/python

*** Failed
Calling FFC just-in-time (JIT) compiler, this may take some time.
In instant.recompile: The module did not compile, see '/Users/buildbot/fenicsbbot/trunk/instant-error/instant_module_29222cac42c81a3f56944c98c82b5f1ff00f206e/compile.log'

Content of instant compile.log
==============================
Traceback (most recent call last):
  File "demo_poisson.py", line 41, in <module>
    V = FunctionSpace(mesh, "Lagrange", 1)
  File "/Users/buildbot/fenicsbbot/trunk/dolfin-full/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 377, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/Users/buildbot/fenicsbbot/trunk/dolfin-full/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 79, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/Users/buildbot/fenicsbbot/trunk/dolfin-full/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/Users/buildbot/fenicsbbot/trunk/dolfin-full/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 154, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/ffc/jitcompiler.py", line 75, in jit
    return jit_element(ufl_object, parameters)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/ffc/jitcompiler.py", line 245, in jit_element
    compiled_form, module, form_data, prefix = jit_form(form, parameters)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/ffc/jitcompiler.py", line 213, in jit_form
    cache_dir = cache_dir)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/ufc_utils/build.py", line 64, in build_ufc_module
    **kwargs)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/instant/build.py", line 545, in build_module
    recompile(modulename, module_path, new_compilation_checksum, build_system)
  File "/Users/buildbot/fenicsbbot/trunk/lib/python2.7/site-packages/instant/build.py", line 161, in recompile
    instant_warning(output)
UnboundLocalError: local variable 'output' referenced before assignment

Johannes Ring (johannr) on 2013-02-06
Changed in instant:
status: Confirmed → Fix Committed
Johannes Ring (johannr) on 2013-03-06
Changed in instant:
milestone: none → 1.2.0
assignee: nobody → Johannes Ring (johannr)
importance: Undecided → Medium
Johannes Ring (johannr) on 2013-03-24
Changed in instant:
status: Fix Committed → Fix Released
Marco Zocca (zocca-marco) wrote :

UnboundLocalError bug in get_swig_executable() , within setup.py for FFC

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers