Problem using theano library for testing


#1

Hi,

First of all thank you for reading and try yo help me.

I’m trying to use this circle.yml file :

machine:
environment:
# We need to set this variable to let python see the package installed through apt-get
PYTHONPATH: "/usr/lib/python2.7/dist-packages:/home/ubuntu/.local/lib/python2.7/site-packages/"
dependencies:

Various dependencies

pre:
- sudo apt-get update
- sudo apt-get install libatlas-dev libatlas3gf-base
- sudo apt-get install build-essential python-dev python-setuptools
- sudo apt-get install python-numpy python-scipy python-dev python-matplotlib
- sudo apt-get install python-nose python-coverage python-sklearn
- sudo apt-get install python-sphinx python-pip
#- sudo -H pip install awsebcli --upgrade --ignore-installed
#- sudo pip install --upgrade ndg-httpsclient
- sudo pip install theano==0.7.0

The --user is needed to let sphinx see the source and the binaries

The pipefail is requested to propagate exit code

override:
- python setup.py install
- set -o pipefail && cd doc && make html 2>&1 | tee ~/log.txt
test:

Grep error on the documentation

override:
- cat ~/log.txt && if grep -q “Traceback (most recent call last):” ~/log.txt; then false; else true; fi
general:

Open the doc to the API

artifacts:
- “doc/_build/html”
- “~/log.txt”

Restrict the build to the branch master only

#branches:

only:

- master

But when launching the $python setup.py install, i get this :

Traceback (most recent call last):
File “setup.py”, line 1, in
import crino
File “/home/ubuntu/crino/crino/init.py”, line 55, in
import crino.criterion
File “/home/ubuntu/crino/crino/criterion.py”, line 38, in
import theano.tensor as T
ImportError: No module named theano.tensor

So here is my question, why doesn’t he find theano ?

Thank you for your help

Simon


#2