Search code examples
pythonamazon-web-servicesbotoamazon-cloudsearch

Boto 2.6 CloudSearch "No module named requests" Error


I'm following this tutorial: http://boto.cloudhackers.com/en/latest/cloudsearch_tut.html

I've installed boto 2.6. The command:

conn = boto.connect_cloudsearch()

produces the error:

>>> conn = boto.connect_cloudsearch()Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "boto/__init__.py", line 616, in connect_cloudsearch
    from boto.cloudsearch.layer2 import Layer2
  File "boto/cloudsearch/layer2.py", line 26, in <module>
    from .domain import Domain
  File "boto/cloudsearch/domain.py", line 34, in <module>
    from .document import DocumentServiceConnection
  File "boto/cloudsearch/document.py", line 30, in <module>
    import requests
ImportError: No module named requests

How do I find the missing requests module?


Solution

  • requests is a third-party module that is a pre-resquite for that module, either do:

    pip install requests
    

    or

    easy_install requests
    

    If these don't work for you, it is on github.

    Having this module will then give you access to boto.