python - ImportError: No module named libxml2 whithin Travis build -


i know question has been asked before, problem within travis build. have installed dependencies listed in documentation,

check travis configuration.

language: python python:   - "2.7" install:   - pip install -r requirements.txt   - pip install pyxmlsec --allow-external pyxmlsec --allow-insecure pyxmlsec   - pip install coveralls script:    coverage run --source=pytrustnfe setup.py nosetests before_install:   - sudo apt-get update -qq   - sudo apt-get install -qq libxml2-dev libxmlsec1-dev libxslt-dev    - sudo apt-get install -qq python-dev python-lxml python-libxml2   - sudo apt-get install -qq python-libxslt1 libxml2   - sudo apt-get install -qq build-essential after_success:   coveralls 

but can't run:

file "/home/travis/build/danimaribeiro/pytrustnfe/pytrustnfe/servicos/assinatura.py", line 6, in <module>     import xmlsec, libxml2 file "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/xmlsec.py", line 33, in <module>     import libxml2 importerror: no module named libxml2 

i have no clues anymore. repository: https://github.com/danimaribeiro/pytrustnfe

for future references, 1 solution problem here: http://danielnouri.org/notes/2012/11/23/use-apt-get-to-install-python-dependencies-for-travis-ci/

the clue in error message; running components against system python, , others against virtual environment; didn't see being setup in script.

file "/home/travis/build/danimaribeiro/pytrustnfe/pytrustnfe/servicos/assinatura.py", line 6, in import xmlsec, libxml2 file "/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/xmlsec.py", line 33, in import libxml2 importerror: no module named libxml2


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -