I see a problem with boost, for some reason it downloaded the version
coming from Anaconda and not the one I compiled. Try installing the
version from my channel:
conda install boost=1.55 --channel=juanlu001
If you still get an error, please copy the entire message from top to
bottom.
On 2015-03-30 22:31, 腾张 wrote:
Dear
I tried to add the command you mentioned, but it does not work neither
with the same error information
---------------------------------------------------
DOLFIN runtime dependency is not met.
Install the following python module: 'ffc'
and make sure its location is listed in PYTHONPATH.
---------------------------------------------------
The output of "conda list" follows:
"# packages in environment at /home/zhangt/envs/fenics27:
#
boost 1.57.0 0
cmake 3.0.1 0
dolfin 1.5.0 np19py27_1
eigen3 3.2.1 0
fastcache 1.0.2 py27_0
ffc 1.5.0 np19py27_1
fiat 1.5.0 np19py27_1
fontconfig 2.11.1 2
freetype 2.5.2 0
instant 1.5.0 np19py27_1
libpng 1.5.13 1
libxml2 2.9.0 0
mkl 11.1 np19py27_p3
mkl-rt 11.1 p0
mkl-service 1.0.0 py27_p1
mpi4py 1.3 py27_0
mpich2 1.4.1p1 0
nose 1.3.4 py27_1
numexpr 2.3.1 np19py27_0
numpy 1.9.2 py27_0
openssl 1.0.1k 1
pcre 8.31 0
petsc 3.5.2 py27_1
petsc4py 3.5.1 py27_1
ply 3.4 py27_0
python 2.7.9 2
qt 4.8.6 0
readline 6.2 2
scikit-learn 0.15.2 np19py27_0
scipy 0.15.1 np19py27_0
six 1.9.0 py27_0
sqlite 3.8.4.1 1
swig 3.0.2 0
sympy 0.7.6 py27_0
system 5.8 2
tk 8.5.18 0
ufl 1.5.0 py27_1
vtk 5.10.1 py27_1
zlib 1.2.8 0
"
I think the error information in my first email is because I did not
use the command "source activate fenics27" first.
Thanks a lot.
Best,
Teng
2015-03-30 14:36 GMT-04:00 Juan Luis Cano <[email protected]
<mailto:[email protected]>>:
Hello,
If I understood correctly the error message changed when you
manually installed dolfin. Could you please try and install ffc
and the rest of the requirements too? In principle conda should
resolve the dependencies itself but perhaps something is not
working well.
conda install |boost eigen3 petsc petsc4py instant ufl fiat
ffc|--channel juanlu001
Please post also the output of 'conda list' with fenics27 activated.
Regards,
Juan Luis Cano
On 2015-03-30 18:12, 腾张 wrote:
Dear Juan Luis Cano,
Thanks a lot for your kind reply.
The following is the result from the command "which python" after
'source activate fenics27'. I tried to install with the command
you recommend "conda install dolfin --channel juanlu001", but it
still does not work.
~/envs/fenics27/bin/python
The following is the result I got with the command "conda info -a"
"Current conda install:
platform : linux-64
conda version : 3.7.0
conda-build version : 1.8.2
python version : 2.7.8.final.0
requests version : 2.4.1
root environment : /cm/shared/engaging/anaconda/2.1.0 (read
only)
default environment : /home/zhangt/envs/fenics27
envs directories : /home/zhangt/envs
/cm/shared/engaging/anaconda/2.1.0/envs
package cache : /home/zhangt/envs/.pkgs
/cm/shared/engaging/anaconda/2.1.0/pkgs
channel URLs : http://repo.continuum.io/pkgs/free/linux-64/
http://repo.continuum.io/pkgs/pro/linux-64/
config file : None
is foreign system : False
# conda environments:
#
fenics27 * /home/zhangt/envs/fenics27
root /cm/shared/engaging/anaconda/2.1.0
sys.version: 2.7.8 |Anaconda 2.1.0 (64-bit)| (default...
sys.prefix: /cm/shared/engaging/anaconda/2.1.0
sys.executable: /cm/shared/engaging/anaconda/2.1.0/bin/python
conda location:
/cm/shared/engaging/anaconda/2.1.0/lib/python2.7/site-packages/c
onda
conda-build: /cm/shared/engaging/anaconda/2.1.0/bin/conda-build
conda-convert: /cm/shared/engaging/anaconda/2.1.0/bin/conda-convert
conda-develop: /cm/shared/engaging/anaconda/2.1.0/bin/conda-develop
conda-index: /cm/shared/engaging/anaconda/2.1.0/bin/conda-index
conda-metapackage:
/cm/shared/engaging/anaconda/2.1.0/bin/conda-metapackage
conda-pipbuild: /cm/shared/engaging/anaconda/2.1.0/bin/conda-pipbuild
conda-skeleton: /cm/shared/engaging/anaconda/2.1.0/bin/conda-skeleton
user site dirs: ~/.local/lib/python2.7
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: fenics27
CONDA_ENVS_PATH: <not set>
LD_LIBRARY_PATH:
/cm/shared/engaging/anaconda/2.1.0/lib:/cm/shared/engaging/open
mpi/1.8.3/lib:/cm/shared/engaging/python/2.7.8/lib:/cm/shared/apps/gcc/4.8.2/lib
:/cm/shared/apps/gcc/4.8.2/lib64
PATH:
/home/zhangt/envs/fenics27/bin:/cm/shared/engaging/openmpi/1.8.3/bin:/cm/s
hared/engaging/python/2.7.8/bin:/cm/shared/apps/gcc/4.8.2/bin:/usr/lib64/qt-3.3/
bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/ibutils/bi
n:/sbin:/usr/sbin:/opt/dell/srvadmin/bin:/home/zhangt/bin
PYTHONHOME: <not set>
PYTHONPATH: <not set>
License directories:
/cm/shared/engaging/anaconda/2.1.0/licenses
/home/zhangt/.continuum
License files (license*.txt):
Package/feature end dates:"
When running the demo, the error is
"DOLFIN runtime dependency is not met.
Install the following python module: 'ffc'
and make sure its location is listed in PYTHONPATH."
I think the reason may probably be the PYTHONPATH.
Best,
Teng
2015-03-30 3:27 GMT-04:00 Juan Luis Cano <[email protected]
<mailto:[email protected]>>:
Hello,
Could you post the result of 'which python' after you do
'source activate fenics27'? Perhaps doing
conda install dolfin --channel juanlu001
works instead. In any case, please post the result of 'conda
info -a' too. Did you download the demo from source or do you
have it installed in your path already?
Juan Luis
On Mar 30, 2015 12:10 AM, "腾张" <[email protected]
<mailto:[email protected]>> wrote:
Dear All,
I installed fenics with conda on our university cluster
with the following command:
"conda create --name fenics27 python=2.7
source activate fenics27
conda install fenics --channel juanlu001"
The process went well and I have a folder name "envs"
containing "fenics27" in my home folder. When I tried to
run some demo, e,g, "demo_cahn-hilliard.py", I got the error:
"Traceback (most recent call last):
File "demo_cahn-hilliard.py", line 27, in <module>
from dolfin import *
ImportError: No module named dolfin"
I think I need some command to add the path library of
fenics to my system, but I did not how to do that. Could
anyone help me on this?
I also tried the command "ldd
<INSTALL_PATH>/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/_common.so"
but it still does not work.
Thanks a lot.
Best,
Teng
_______________________________________________
fenics mailing list
[email protected] <mailto:[email protected]>
http://fenicsproject.org/mailman/listinfo/fenics
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics