devitocodes / opesci-fd

A framework for automatically generating finite difference models from a high-level description of the model equations.

Home Page:http://opesci.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

installation and first use

joaomedeiros opened this issue · comments

Hello,

I'm trying to use opesci-fd (https://github.com/opesci/opesci-fd). I followed the instructions there.

1)The first problem, I wasn't able to install using this command (even after pip install -r requirements.txt successfully)

pip install --local git+https://github.com/opesci/opesci-fd.git

First I had to do install libyaml-dev
sudo apt-get install libyaml-dev

And gave the command (note the --allow-external)
pip install --allow-external --local git+https://github.com/opesci/opesci-fd.git

  1. After the installation I still not able to use import opesci, please see below:

Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.

from opesci import *
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/opesci/init.py", line 4, in
from staggeredgrid import *
File "/usr/local/lib/python2.7/dist-packages/opesci/staggeredgrid.py", line 8, in
from opesci.regulargrid import RegularGrid
File "/usr/local/lib/python2.7/dist-packages/opesci/regulargrid.py", line 11, in
from templates import regular3d_tmpl
ImportError: No module named templates

My OS is Ubuntu 16.04.1 LTS.

Joao