Zakiullah Khan
Zakiullah Khan

Reputation: 1475

Unable to install boto in a virtualenv

I was able to install boto==2.9.0 inside global site-packages, but when I try to install the same within a virtualenv, it fails with the following error.

Running setup.py egg_info for package boto
Traceback (most recent call last):
  File "<string>", line 16, in <module>
  File "/home/khanio/.virtualenvs/test-boto/build/boto/setup.py", line 37, in <module>
    from boto import __version__
  File "boto/__init__.py", line 43, in <module>
    config = Config()
  File "boto/pyami/config.py", line 73, in __init__
    self.load_credential_file(full_path)
  File "boto/pyami/config.py", line 84, in load_credential_file
    self.readfp(c_data)
  File "/usr/lib/python2.7/ConfigParser.py", line 324, in readfp
    self._read(fp, filename)
  File "/usr/lib/python2.7/ConfigParser.py", line 546, in _read
    raise e
ConfigParser.ParsingError: File contains parsing errors: <???>
    [line  2]: '-----BEGIN RSA PRIVATE KEY-----\r\n'
    .......

I tried the same on Mountain Lion and Ubuntu 12.04, both have got python 2.7.4 installed, and on both it fails to install within a virtualenv.

Upvotes: 1

Views: 1316

Answers (1)

garnaat
garnaat

Reputation: 45906

I think the problem is that you have the environment variable AWS_CREDENTIAL_FILE set but it appears to be pointing to a file containing a private key rather than an AWSAccessKeyId and AWSSecretKey value.

Try un-setting this environment variable and trying the installation again.

Upvotes: 2

Related Questions