Skip to content

username requires quotes #4

@agt24

Description

@agt24

I needed to put my username in single quotes in order to get get_token_example.py to work (see below). Not sure if there's something unique to my environment, but it might be worth including a note in the README.

`
(awscli) [adamt@felix python]$ python get_token_example.py
Enter your NIMH Data Archives username:adamt
Traceback (most recent call last):
File "get_token_example.py", line 6, in
username = input('Enter your NIMH Data Archives username:')
File "", line 1, in
NameError: name 'adamt' is not defined
(awscli) [adamt@felix python]$

(awscli) [adamt@felix python]$ python get_token_example.py
Enter your NIMH Data Archives username:'adamt'
Enter your NIMH Data Archives password:
aws_access_key_id=XXX
aws_secret_access_key=XXX
security_token=XXX
expiration=2018-05-03T04:04:48-04:00

(awscli) [adamt@felix python]$
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions