Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

No module named dolfin #32

Closed
porphyrius opened this issue Sep 28, 2015 · 2 comments
Closed

No module named dolfin #32

porphyrius opened this issue Sep 28, 2015 · 2 comments

Comments

@porphyrius
Copy link

Hi Juan,

I keep having problems with the installation of Fenics from Conda.

This is what I did:

conda create --name fenics27 python=2.7
source activate fenics27
conda install fenics --channel juanlu001

but then:

(fenics27)gamba@policefalo:~$ ipython
Python 2.7.6 (default, Jun 22 2015, 17:58:13) 
Type "copyright", "credits" or "license" for more information.

IPython 1.2.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: from dolfin import *
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-f9fe29351801> in <module>()
----> 1 from dolfin import *

ImportError: No module named dolfin

This is my environment:

(fenics27)gamba@policefalo:~$ conda info --all
Current conda install:

             platform : linux-64
        conda version : 3.17.0
  conda-build version : 1.2.0
       python version : 2.7.10.final.0
     requests version : 2.7.0
     root environment : /home/gamba/anaconda  (writable)
  default environment : /home/gamba/anaconda/envs/fenics27
     envs directories : /home/gamba/anaconda/envs
        package cache : /home/gamba/anaconda/pkgs
         channel URLs : https://conda.anaconda.org/juanlu001/linux-64/
                        https://conda.anaconda.org/juanlu001/noarch/
                        https://repo.continuum.io/pkgs/free/linux-64/
                        https://repo.continuum.io/pkgs/free/noarch/
                        https://repo.continuum.io/pkgs/pro/linux-64/
                        https://repo.continuum.io/pkgs/pro/noarch/
          config file : /home/gamba/.condarc
    is foreign system : False

# conda environments:
#
fenics27              *  /home/gamba/anaconda/envs/fenics27
root                     /home/gamba/anaconda

sys.version: 2.7.10 |Anaconda 2.3.0 (64-bit)| (defaul...
sys.prefix: /home/gamba/anaconda
sys.executable: /home/gamba/anaconda/bin/python
conda location: /home/gamba/anaconda/lib/python2.7/site-packages/conda
conda-build: /home/gamba/anaconda/bin/conda-build
conda-convert: /home/gamba/anaconda/bin/conda-convert
conda-env: /home/gamba/anaconda/bin/conda-env
conda-index: /home/gamba/anaconda/bin/conda-index
conda-server: /home/gamba/anaconda/bin/conda-server
conda-skeleton: /home/gamba/anaconda/bin/conda-skeleton
user site dirs: 

CIO_TEST: <not set>
CONDA_DEFAULT_ENV: fenics27
CONDA_ENVS_PATH: <not set>
LD_LIBRARY_PATH: <not set>
PATH: /home/gamba/anaconda/envs/fenics27/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PYTHONHOME: <not set>
PYTHONPATH: <not set>

License directories:
    /home/gamba/.continuum
    /home/gamba/anaconda/licenses
License files (license*.txt):
    /home/gamba/.continuum/license_academic_20150507134328.txt
               Reading license file : 1
                    Signature valid : 1
                       Vendor match : 1
                            product : u'Academic'
                           packages : u'numbapro mkl iopro'
                           end_date : u'2016-05-06'
                               type : None
    /home/gamba/.continuum/license_academic_20140113103854.txt
               Reading license file : 1
                    Signature valid : 1
                       Vendor match : 1
                            product : u'Academic'
                           packages : u'numbapro mkl iopro'
                           end_date : u'2015-01-13'
                               type : None
Package/feature end dates:
    numbapro        : 2016-05-06
    iopro           : 2016-05-06
    mkl             : 2016-05-06
@astrojuanlu
Copy link
Owner

Hello @porphyrius, what is happening is that the IPython that you are launching is not part of the conda installation and therefore is not seeing the FEniCS installation. Try again after conda install ipython, and if it still doesn't work please reopen the issue and paste the output of conda list.

@porphyrius
Copy link
Author

Thanks a lot @Juanlu001,
that was exactly what was happening, it's ok now!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants