ntfrgl
ntfrgl

Reputation: 13

tox/conda/travis-ci raises ImportError: _PyErr_ReplaceException

I want to set up Travis-CI to run the locally working test suite of a recently open-sourced Python 2.7 library. For efficiently installing dependencies like Numpy and Scipy, I found some advice to use the Miniconda distribution. Unfortunately, my .travis.yml, which follows the official "Using Conda with Travis CI" tutorial, after successfully installing all dependencies produces this error while initializing the tox environment:

ImportError: /home/travis/build/.../.tox/py27-nose/lib/python2.7/lib-dynload/_io.so: undefined symbol: _PyErr_ReplaceException

The mentioned symbol was recently added in Issue 23781 of the Python Bug Tracker. I suspect that the problem is caused by conflicting Python versions, and tried to use Python 2.7.9 as well as 2.7.10, with and without a test environment as produced by conda create, to no avail.

I would greatly appreciate any advice!

Upvotes: 1

Views: 3217

Answers (3)

mbenhalima
mbenhalima

Reputation: 752

Fixed by downgrading my Python version from 2.7.10 to 2.7.9

Upvotes: 0

Chris Withers
Chris Withers

Reputation: 11111

The conda guys have now released a fixed virtualenv package that no longer has this problem.

Upvotes: 0

babalu
babalu

Reputation: 622

You can downgrade by running conda install python=2.7.9 and confirm it resolves your issue.

Upvotes: 4

Related Questions