Dolfin can't find ufc

Asked by Thodoros Katsaounis

I am new on FEniCS and I am trying to run the python version of the poisson demo and gives the following error
---------------------------------------------------
DOLFIN runtime dependency is not met.
Install the following python module: 'ufc'
and make sure its location is listed in PYTHONPATH
---------------------------------------------------

the cpp version of the demo runs fine.

the same problem with the other python demos.

the setup is the following :

Macosx 10.6.8 , Xcode 4.2, Python 2.6, Fenics 1.2.0 the 'env' output is

MANPATH=/Applications/FEniCS.app/Contents/Resources/man:/Applications/FEniCS.app/Contents/Resources/share/man:/usr/local/Trolltech/Qt-4.8.2/doc/man:
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/bash
TMPDIR=/var/folders/RJ/RJjxmieAGZOasfOVO8NEIE+++TI/-Tmp-/
Apple_PubSub_Socket_Render=/tmp/launch-Ub8XT8/Render
TERM_PROGRAM_VERSION=273.1
QTDIR=/usr/local/Trolltech/Qt-4.8.2
OPAL_PREFIX=/Applications/FEniCS.app/Contents/Resources
BOOST_DIR=/Applications/FEniCS.app/Contents/Resources
USER=thodoros
COMMAND_MODE=unix2003
TECHOME=/Applications/Tec360_2008
SSH_AUTH_SOCK=/tmp/launch-c96pgX/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/Applications/FEniCS.app/Contents/Resources/bin:/usr/local/Trolltech/Qt-4.8.2/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin
PWD=/Users/thodoros/pde/FEniCS/demo/pde/biharmonic/cpp
PS1=\[\033[01;32m\]\u@\h:\[\033[01;34m\]\W$ \[\033[00m\]
DYLD_FRAMEWORK_PATH=/System/Library/Frameworks:/Library/Frameworks:
CXX=/usr/bin/g++
SHLVL=3
HOME=/Users/thodoros
FC=gfortran
DYLD_LIBRARY_PATH=/Applications/FEniCS.app/Contents/Resources/lib:/Applications/FEniCS.app/Contents/Resources/lib/vtk-5.10::/usr/local/deal.II/lib:/usr/local/Trolltech/Qt-4.8.2/lib:/usr/local/lib
SWIG_LIB=/Applications/FEniCS.app/Contents/Resources/share/swig/2.0.8
PYTHONPATH=/Applications/FEniCS.app/Contents/Resources/lib/python2.6/site-packages:/Applications/FEniCS.app/Contents/Resources/lib/vtk-5.10:
LOGNAME=thodoros
VERSIONER_PYTHON_PREFER_32_BIT=yes
LC_CTYPE=UTF-8
PKG_CONFIG_PATH=/Applications/FEniCS.app/Contents/Resources/lib/pkgconfig:/usr/lib/pkgconfig:
CC=/usr/bin/gcc
DISPLAY=/tmp/launch-vRjrCh/org.x:0
_=/usr/bin/env
OLDPWD=/Users/thodoros/pde/FEniCS/demo/pde/biharmonic/python

Thanks

Th.

Question information

Language:
English Edit question
Status:
Answered
For:
DOLFIN 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.

Revision history for this message
Johannes Ring (johannr) said :
#2

Sorry for the late reply. Are you running this on a 32 bit Mac? If so, that is not supported as noted on the website.

Revision history for this message
Thodoros Katsaounis (thodoros65) said :
#3

No I am running on a 64bit kernel. After your message I tried to run the demos with the 64bit version of python. Then I don't get the previous message anymore( which I still get it if I run the 32bit python). Now some python demos run like the biharmonic, the Cahn-Hiliard and some others still don't, like the poisson, the navier-stokes, Fenics crashes with the following output

[Theodoros-Katsaouniss-MacBook-Pro:05597] *** Process received signal ***
[Theodoros-Katsaouniss-MacBook-Pro:05597] Signal: Segmentation fault (11)
[Theodoros-Katsaouniss-MacBook-Pro:05597] Signal code: Address not mapped (1)
[Theodoros-Katsaouniss-MacBook-Pro:05597] Failing at address: 0x0
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 0] 2 libSystem.B.dylib 0x00007fff802da1ba _sigtramp + 26
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 1] 3 ??? 0x0000000101186dc0 0x0 + 4313345472
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 2] 4 _dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210.so 0x00000001094c6c4e init_dolfin_compile_code_f6c3010fb014663578b3cbc5ec745210 + 174
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 3] 5 Python 0x000000010009ad3b _PyImport_LoadDynamicModule + 189
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 4] 6 Python 0x00000001000995aa _PyImport_FindModule + 1365
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 5] 7 Python 0x0000000100088187 PyEval_EvalFrameEx + 15317
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 6] 8 Python 0x00000001000882e1 PyEval_EvalFrameEx + 15663
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 7] 9 Python 0x0000000100089cce PyEval_EvalCodeEx + 1803
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 8] 10 Python 0x0000000100089d61 PyEval_EvalCode + 54
[Theodoros-Katsaouniss-MacBook-Pro:05597] [ 9] 11 Python 0x00000001000978f2 PyImport_ExecCodeModuleEx + 258
[Theodoros-Katsaouniss-MacBook-Pro:05597] [10] 12 Python 0x0000000100098248 PyImport_AppendInittab + 1026
[Theodoros-Katsaouniss-MacBook-Pro:05597] [11] 13 Python 0x0000000100099af8 PyImport_ReloadModule + 1347
[Theodoros-Katsaouniss-MacBook-Pro:05597] [12] 14 Python 0x0000000100099f78 PyImport_ReloadModule + 2499
[Theodoros-Katsaouniss-MacBook-Pro:05597] [13] 15 Python 0x000000010009a56a PyImport_ImportModuleLevel + 1217
[Theodoros-Katsaouniss-MacBook-Pro:05597] [14] 16 Python 0x00000001000829cb _PyBuiltin_Init + 14264
[Theodoros-Katsaouniss-MacBook-Pro:05597] [15] 17 Python 0x0000000100009ff3 PyObject_Call + 112
[Theodoros-Katsaouniss-MacBook-Pro:05597] [16] 18 Python 0x00000001000839db PyEval_CallObjectWithKeywords + 175
[Theodoros-Katsaouniss-MacBook-Pro:05597] [17] 19 Python 0x00000001000875ea PyEval_EvalFrameEx + 12344
[Theodoros-Katsaouniss-MacBook-Pro:05597] [18] 20 Python 0x0000000100089cce PyEval_EvalCodeEx + 1803
[Theodoros-Katsaouniss-MacBook-Pro:05597] [19] 21 Python 0x0000000100089d61 PyEval_EvalCode + 54
[Theodoros-Katsaouniss-MacBook-Pro:05597] [20] 22 Python 0x00000001000978f2 PyImport_ExecCodeModuleEx + 258
[Theodoros-Katsaouniss-MacBook-Pro:05597] [21] 23 Python 0x0000000100098248 PyImport_AppendInittab + 1026
[Theodoros-Katsaouniss-MacBook-Pro:05597] [22] 24 Python 0x00000001000991d0 _PyImport_FindModule + 379
[Theodoros-Katsaouniss-MacBook-Pro:05597] [23] 25 Python 0x0000000100099af8 PyImport_ReloadModule + 1347
[Theodoros-Katsaouniss-MacBook-Pro:05597] [24] 26 Python 0x0000000100099f78 PyImport_ReloadModule + 2499
[Theodoros-Katsaouniss-MacBook-Pro:05597] [25] 27 Python 0x000000010009a56a PyImport_ImportModuleLevel + 1217
[Theodoros-Katsaouniss-MacBook-Pro:05597] [26] 28 Python 0x00000001000829cb _PyBuiltin_Init + 14264
[Theodoros-Katsaouniss-MacBook-Pro:05597] [27] 29 Python 0x0000000100088187 PyEval_EvalFrameEx + 15317
[Theodoros-Katsaouniss-MacBook-Pro:05597] [28] 30 Python 0x00000001000882e1 PyEval_EvalFrameEx + 15663
[Theodoros-Katsaouniss-MacBook-Pro:05597] [29] 31 Python 0x00000001000882e1 PyEval_EvalFrameEx + 15663

Revision history for this message
Anders Logg (logg) said :
#4

FEniCS no longer uses Launchapd for Questions & Answers. Please
consult the documentation on the FEniCS web page for where and
how to (re)post your question: http://fenicsproject.org/support/

Revision history for this message
Anders Logg (logg) said :
#5

FEniCS no longer uses Launchapd for Questions & Answers. Please
consult the documentation on the FEniCS web page for where and
how to (re)post your question: http://fenicsproject.org/support/

Can you help with this problem?

Provide an answer of your own, or ask Thodoros Katsaounis for more information if necessary.

To post a message you must log in.