Search code examples
pythonboto

from: can't read /var/mail/boto.s3.connection


The first line in my python program is from boto.s3.connection import S3Connection.

When I execute the program, the output is "from: can't read /var/mail/boto.s3.connection."

Any ideas on how to troubleshoot?

I've installed boto by downloading the tar and running sudo python setup.py install


Solution

  • Looks like you are trying to execute your Python program in shell. Either add

    #!/bin/env python
    

    as the first line or run it in python explicitly

    python whatever.py