Restore RethinkDB dump

python
circle.yml

#1

I would like to import some data into my DB for testing within a python environment. I am using RethinkDB and it is installed via pip (via requirements.txt).

I’m currently doing this in my circle.yml:

machine:
    python:
        version: 2.7.11
dependencies:
  pre:
    - export PYTHONPATH=`pwd`; rethinkdb restore test/test_db_dump.tar.gz

The result is this:

export PYTHONPATH=`pwd`; python -m rethinkdb._restore test/test_db_dump.tar.gz
/home/ubuntu/virtualenvs/venv-2.7.11/bin/python: No module named rethinkdb

export PYTHONPATH=`pwd`; python -m rethinkdb._restore test/test_db_dump.tar.gz returned exit code 1

Action failed: export PYTHONPATH=`pwd`; python -m rethinkdb._restore test/test_db_dump.tar.gz

Any help (or guidance on how to populate a DB before tests would be greatly appreciated)!


#2