On Thu, Aug 15, 2013 at 2:26 PM, A. Lapraitis <[email protected]> wrote:
> Thanks for the tip, making from a different directory made everything go
> through to 100%. However, I am still getting the same error:
>
> ##################################################################################################################
>
> $ python
> Python 2.7.5 (default, Jul  8 2013, 09:48:59)
> [GCC 4.8.1 20130603 (Red Hat 4.8.1-1)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from dolfin import *
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib64/python2.7/site-packages/dolfin/__init__.py", line
> 16, in <module>
>     import cpp
>   File "/usr/local/lib64/python2.7/site-packages/dolfin/cpp/__init__.py",
> line 40, in <module>
>     exec("import %s" % module_name)
>   File "<string>", line 1, in <module>
> ImportError: No module named common
>>>>
> ##################################################################################################################
>
> In the CMakeCache.txt, I read
>
> ##################################################################################################################
> //Python extension module installation directory.
> DOLFIN_INSTALL_PYTHON_MODULE_DIR:PATH=lib64/python2.7/site-packages
>
> //Python module installation directory.
> DOLFIN_INSTALL_PYTHON_PURE_MODULE_DIR:PATH=lib/python2.7/site-packages
> ##################################################################################################################
>
> There seems to be more stuff in the dolfin directory. Am I missing some
> prerequisite? Should I reinstall ufc?
>
> ##################################################################################################################
> $ source /usr/local/share/dolfin/dolfin.conf
>
> $ echo $PYTHONPATH
> /usr/local/lib64/python2.7/site-packages:/usr/local/lib/python2.7/site-packages:
> $ ls /usr/local/lib/python2.7/site-packages
> dolfin_utils  ufc_utils
> $ ls /usr/local/lib64/python2.7/site-packages/dolfin
> common          cpp             fem        importhandler  mesh
> compilemodules  deprecation.py  functions  __init__.py    multistage
> ##################################################################################################################

Still nothing in /usr/local/lib64/python2.7/site-packages/dolfin/cpp?
I have the following in this directory:

$ ls local/lib/python2.7/site-packages/dolfin/cpp/
common.py   fem.py   function.py   __init__.py   io.pyc  la.pyc   mesh.pyc
common.pyc  fem.pyc  function.pyc  __init__.pyc  _io.so  _la.so   _mesh.so
_common.so  _fem.so  _function.so  io.py         la.py   mesh.py

You can also try to run the ./cmake.local script and see if that works for you.

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to