No Module Named neo4j in Travis-CI integrated with Python Django -
i have built small python application in django framework, neo4j database hosted on graphene db. integrating travis-ci continuous integration application on github, however, stuck on getting error in travis like: importerror: no module named 'neo4j' below .travis.yml file:
language: python python: - "3.4" - "2.7" # command install dependencies install: - pip install -q django==$django_version - pip install py2neo - pip install neo4django - pip install -r requirements.txt # command run tests script: python eb_django_app/neo4j/manage.py test env: - django_version=1.8.3 branches: only: - master
manage.py :
import os import sys py2neo import neo4j py2neo import serviceroot graphenedb_url = os.environ.get("graphene db url", "http://localhost:7474/") graph = serviceroot(graphenedb_url).graph if __name__ == "__main__": os.environ.setdefault("django_settings_module", "neo4j.settings") django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
the folder structure of python application is:
eb_django_app |_ .travis.yml |_ requirements.txt |_ eb_django_app |_python codebase |_manage.py |_neo4j |_manage.py |_tests.py
i new both travis , python. missing something? can please me out solution resolve error, appreciate immediate response?
Comments
Post a Comment