It looks like you have a mix of 1.4.0 (FFC and FIAT) and 1.3.0 (instant) packages. Can you make sure you have the latest packages and an up-to-date system by running the commands listed on the webpage:
http://fenicsproject.org/download/ubuntu_details.html#ubuntu-ppa Johannes On Sat, Nov 22, 2014 at 9:43 AM, Victor Synnes <[email protected]> wrote: > Hi. > > I am having some difficulties when I am importing dolfin in python > programmes. > > When my program starts the following is showing up on screen: > > > "" > > Traceback (most recent call last): > File "Picard_1step.py", line 1, 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 18, in > <module> > from ffc.compiler import compile_form, compile_element > File "/usr/lib/python2.7/dist-packages/ffc/compiler.py", line 127, in > <module> > from ffc.analysis import analyze_forms, analyze_elements > File "/usr/lib/python2.7/dist-packages/ffc/analysis.py", line 42, in > <module> > from ffc.quadratureelement import default_quadrature_degree > File "/usr/lib/python2.7/dist-packages/ffc/quadratureelement.py", line 27, > in <module> > from FIAT.functional import PointEvaluation > File "/usr/lib/python2.7/dist-packages/FIAT/__init__.py", line 11, in > <module> > from FIAT.finite_element import FiniteElement > File "/usr/lib/python2.7/dist-packages/FIAT/finite_element.py", line 19, > in <module> > from .polynomial_set import PolynomialSet > File "/usr/lib/python2.7/dist-packages/FIAT/polynomial_set.py", line 29, > in <module> > from . import expansions > File "/usr/lib/python2.7/dist-packages/FIAT/expansions.py", line 34, in > <module> > """) > Exception: Unable to import the Python Scientific module required by FIAT. > Consider installing the package python-scientific. > "" > > Now, Scientific python is already installed and has been used several times > with no difficulties. I also ran a pip freeze on my system. I am running > version 14.04 of Ubuntu. list installed packages: > > > Cython==0.21 > Django==1.7 > Doconce==0.9.3 > EnthoughtBase==3.1.0 > FFC==1.4.0 > FIAT==1.4.0 > Flask==0.10.1 > Jinja2==2.7.3 > Mako==1.0.0 > MarkupSafe==0.23 > MySQL-python==1.2.3 > PAM==0.4.2 > Paver==1.2.3 > Pillow==2.3.0 > Pmw==1.3.2 > PyOpenGL==3.0.2 > PyX==0.12.1 > Pygments==1.6 > Pymacs==0.23 > Pyro==3.14 > SciTools==0.9.0 > ScientificPython==2.9.4 > SecretStorage==2.0.0 > Sphinx==1.2.3 > Twisted-Core==13.2.0 > Twisted-Web==13.2.0 > UFL==1.4.0 > VTK==5.8.0 > Werkzeug==0.9.6 > adium-theme-ubuntu==0.3.4 > apptools==4.1.0 > apt-xapian-index==0.45 > argparse==1.2.1 > astroid==1.2.1 > backports.ssl-match-hostname==3.4.0.2 > beautifulsoup4==4.2.1 > bzr==2.7.0dev1 > certifi==14.05.14 > chardet==2.0.1 > colorama==0.2.5 > command-not-found==0.3 > configobj==4.7.2 > cvxopt==1.1.4 > debtagshw==0.1 > decorator==3.4.0 > defer==1.0.6 > diff-match-patch==20121119 > dirspec==13.10 > docutils==0.12 > duplicity==0.6.23 > envisage==4.1.0 > flake8==2.2.3 > gnuplot-py==1.8 > html5lib==0.999 > httplib2==0.8 > instant==1.3.0- > ipython==2.2.0 > itsdangerous==0.24 > joblib==0.7.1 > keyring==3.5 > kiki==0.5.6 > launchpadlib==1.10.2 > lazr.restfulclient==0.13.3 > lazr.uri==1.0.3 > lockfile==0.8 > logilab-common==0.62.1 > lxml==3.3.3 > matplotlib==1.3.1 > mayavi==4.1.0 > mccabe==0.2.1 > mercurial==2.8.2 > nose==1.3.4 > numexpr==2.4 > numpy==1.9.0 > oauth==1.0.1 > oauthlib==0.6.1 > oneconf==0.3.7 > openpyxl==1.7.0 > pandas==0.13.1 > paramiko==1.10.1 > patsy==0.2.1 > pdftools==0.37 > pep8==1.5.7 > petsc4py==3.4 > pexpect==3.1 > piston-mini-client==0.7.5 > ply==3.4 > psutil==1.2.1 > ptex2tex==0.4 > py==1.4.25 > pyOpenSSL==0.13 > pychecker==0.8.19 > pycrypto==2.6.1 > pycups==1.9.66 > pycurl==7.19.3 > pyface==4.1.0 > pyflakes==0.8.1 > pygame==1.9.1release > pygobject==3.12.0 > pygpgme==0.3 > pylint==1.3.1 > pyparsing==2.0.1 > pyserial==2.6 > pysmbc==1.0.14.1 > pytest==2.6.3 > python-apt==0.9.3.5 > python-dateutil==1.5 > python-debian==0.1.21-nmu2ubuntu2 > pytz==2012c > pyxdg==0.25 > pyxine==0.1alpha2 > pyzmq==14.3.1 > reportlab==3.0 > requests==2.2.1 > roman==2.0.0 > rope==0.9.2 > scipy==0.14.0 > sessioninstaller==0.0.0 > simplegeneric==0.8.1 > simplejson==3.3.1 > six==1.5.2 > software-center-aptd-plugins==0.0.0 > sphinxcontrib-paverutils==1.6 > sphinxjp.themecore==0.2.0 > spyder==2.2.5 > ssh-import-id==3.21 > statsmodels==0.5.0 > sympy==0.7.5 > system-service==0.1.6 > tables==3.1.1 > tagpy==2013.1 > tornado==4.0.2 > traits==4.1.0 > traitsui==4.1.0 > unity-lens-photos==1.0 > urllib3==1.7.1 > wadllib==1.3.2 > winpdb==1.4.8 > wsgiref==0.1.2 > wxGlade==0.6.8 > wxPython==2.8.12.1 > wxPython-common==2.8.12.1 > xdiagnose==3.6.3build2 > xlrd==0.9.2 > xlwt==0.7.5 > zope.interface==4.0.5 > victor@victor-HP-Pavilion-dv5-Notebook-PC:~$ sudo apt-get install > python-numpy python-scipy python-matplotlib ipython ipython-notebook > python-pandas python-sympy python-nose > > "" > > > Sincerely, > > Victor Synnes > > > _______________________________________________ > fenics-support mailing list > [email protected] > http://fenicsproject.org/mailman/listinfo/fenics-support > _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
