Syntax error in import statement #1410

Open
nkhetia opened this Issue Mar 27, 2013 · 4 comments

Comments

Projects
None yet
3 participants

nkhetia commented Mar 27, 2013

Hi,

I am getting following error while executing a script. Any help/hint to resolve this would really be appreciated.

Thanks in advance,

Nilesh

========================================

Traceback (most recent call last):
  File "bin/sample.py", line 4, in ?
    import os, sys, boto.ec2, calendar, datetime,time, ConfigParser, boto, csv
  File "/boto/__init__.py", line 27, in ?
    from boto.storage_uri import BucketStorageUri, FileStorageUri
  File "/boto/storage_uri.py", line 26, in ?
    from boto.exception import BotoClientError
  File "/boto/exception.py", line 30, in ?
    from boto.resultset import ResultSet
  File "/boto/resultset.py", line 22, in ?
    from boto.s3.user import User
  File "/boto/s3/__init__.py", line 52
    from .connection import S3Connection
         ^
SyntaxError: invalid syntax

==========================================

Owner

jamesls commented Mar 28, 2013

What version of python are you using?

nkhetia commented Mar 28, 2013

python version is 2.7.3.

Sent from my iPhone

On Mar 27, 2013, at 5:26 PM, James Saryerwinnie notifications@github.com wrote:

What version of python are you using?


Reply to this email directly or view it on GitHub.

Owner

garnaat commented Mar 28, 2013

Hmm. I'm unable to reproduce this. The paths in your traceback above look odd. How did you install boto?

nkhetia commented Mar 28, 2013

i copied over boto folder under boto-2.6.0 folder into my bin folder.

thanks
~N

On Wed, Mar 27, 2013 at 6:38 PM, Mitch Garnaat notifications@github.comwrote:

Hmm. I'm unable to reproduce this. The paths in your traceback above look
odd. How did you install boto?


Reply to this email directly or view it on GitHubhttps://github.com/boto/boto/issues/1410#issuecomment-15563755
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment