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]>:

> 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]> 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]
>> http://fenicsproject.org/mailman/listinfo/fenics
>>
>>
_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to