Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Travis is not finding pandas installed by conda

It looks like conda changed the default versions it looks for today, because conda install numpy scipy does not currently work:

$conda create numpy scipy -n test-build-issue3 --dry-run
Error: Unsatisfiable package specifications
Hint: the following combinations of packages create a conflict with the
remaining packages:
  - numpy 1.7*
  - scipy

If I give specific versions, I can set up a working environment locally.

conda create numpy=1.7.1 scipy=0.13.0 pandas=0.13.0 matplotlib=1.3 PIL -n test-build --dry-run

But on Travis, while conda reports having installed and linked pandas, the test suite raises an ImportError:

$ nosetests --nologcapture -a '!slow'
E
(...)
ImportError: No module named pandas

One example of a complete failed build is here.

The test suite was passing fine yesterday. I have lots of experience with Travis but less experience running and debugging conda on it. Any suggestions?

like image 421
Dan Allan Avatar asked Feb 10 '14 18:02

Dan Allan


Video Answer


1 Answers

Thanks for the folks over at the anaconda mailing list, this is resolved.

Today, ContinuumIO updated conda, but not miniconda, and this was the cause of my woes. To protect oneself from this situation, add this line to before-install:

- conda update --yes conda
like image 104
Dan Allan Avatar answered Oct 22 '22 13:10

Dan Allan