On OSX I found that
pip install boto did not resolve the issue.
The problem was that python was not pointing to the pip installation.
resolved this for me.
I solved this separately by running:
$ sudo easy_install pip
This uses the default python package installer to install PIP
$ sudo pip install boto
I needed Admin rights to add boto (I don’t know if thats right or not).
$ eb start
- Django Test Client post() returns 302 despite error on view's post()
- Making Twitter, Tastypie, Django, XAuth and iOS work to Build Django-based Access Permissions
- Django model inheritance and type check
- How to append pages of data using jQuery and Django pagination?
pip freeze > requirements.txt after you ran
pip install boto?
You need to update your
requirements.txt after each time you install a new python package locally to ensure your AWS instance has all the required packages as well.
In case you aren’t the one who wrote
boto in, you’ll need to install it and then pip freeze it yourself.
Try running the following commands:
pip install boto
pip freeze > requirements.txt
git add .
git commit -m "Added boto"
I had a similar issue with Ansible and fixed it using:
sudo apt install python-boto
I am using python3. So I had to use the following command for
PYTHONPATH to point to site-packages dir
- Django: WSGIRequest' object has no attribute 'user' on some pages?
- How to test (using unittest) the HTML output of a Django view?
- Paypal monthly subscription plan settings for first day of the month and making monthly recurring payment – django python
- How to use ModelMultipleChoiceFilter?
If you’re using ubuntu, try this out:-
sudo apt install python-boto3
- Django, REST and Angular Routes
- Pycharm (Python IDE) doesn't auto complete Django modules
- Django – authentication, registration with email confirmation
- How can my Model primary key start with a specific number?