I have a ubuntu LTS server. On boot I run a script which does the following:
#!/bin/bash
apt-get -y install build-essential python-dev libxml2-dev libxslt1-dev
apt-get -y install python-pip python-virtualenv
mkdir /etc/test/venv
virtualenv /etc/test/venv
. /etc/test/venv/bin/activate
pip install -r /etc/test/requirements.txt
cd /etc/test/utilities/
chmod +x worker.py
./worker.py &
exit 0
I know that this executes ok. In my requirements.txt I have the following:
boto
scrapy
Then in my worker.py it starts with this code:
#!/usr/bin/env python
import logging
import boto.swf.layer2 as swf
The error I get is:
Import Error: No module named boto.swf.layer2
I don't know where to start understanding what is going wrong. Is it a path error, or is boto not being installed correctly?