{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto3/issues/373","labels_url":"https://api.github.com/repos/boto/boto3/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto3/issues/373/comments","events_url":"https://api.github.com/repos/boto/boto3/issues/373/events","html_url":"https://github.com/boto/boto3/issues/373","id":117641865,"number":373,"title":"NoRegionError when connecting to local DynamoDB","user":{"login":"michelesr","id":2516077,"avatar_url":"https://avatars.githubusercontent.com/u/2516077?v=3","gravatar_id":"","url":"https://api.github.com/users/michelesr","html_url":"https://github.com/michelesr","followers_url":"https://api.github.com/users/michelesr/followers","following_url":"https://api.github.com/users/michelesr/following{/other_user}","gists_url":"https://api.github.com/users/michelesr/gists{/gist_id}","starred_url":"https://api.github.com/users/michelesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelesr/subscriptions","organizations_url":"https://api.github.com/users/michelesr/orgs","repos_url":"https://api.github.com/users/michelesr/repos","events_url":"https://api.github.com/users/michelesr/events{/privacy}","received_events_url":"https://api.github.com/users/michelesr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boto/boto3/labels/dynamodb","name":"dynamodb","color":"eb6420"},{"url":"https://api.github.com/repos/boto/boto3/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-18T17:48:23Z","updated_at":"2015-11-18T18:12:21Z","closed_at":"2015-11-18T18:09:03Z","body":"While attempting to connect to a local instance of DynamoDB i get the following:\r\n\r\n    Traceback (most recent call last):\r\n      File \"create_table.py\", line 3, in <module>\r\n        dynamodb = boto3.resource('dynamodb', endpoint_url=\"http://localhost:8000\")\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/boto3/__init__.py\", line 87, in resource\r\n        return _get_default_session().resource(*args, **kwargs)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/boto3/session.py\", line 277, in resource\r\n        aws_session_token=aws_session_token, config=config)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/boto3/session.py\", line 199, in client\r\n        aws_session_token=aws_session_token, config=config)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/botocore/session.py\", line 762, in create_client\r\n        client_config=config, api_version=api_version)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/botocore/client.py\", line 62, in create_client\r\n        verify, credentials, scoped_config, client_config)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/botocore/client.py\", line 227, in _get_client_args\r\n        endpoint_url)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/botocore/client.py\", line 117, in _get_signature_version_and_region\r\n        service_model.endpoint_prefix, region_name, scheme=scheme)\r\n      File \"/home/michele/.virtualenvs/mqtt/lib/python3.5/site-packages/botocore/regions.py\", line 70, in construct_endpoint\r\n        raise NoRegionError()\r\n    botocore.exceptions.NoRegionError: You must specify a region.\r\n\r\nI get no problem when connecting through the web shell at `http://localhost:8000/shell` or  `boto` package:\r\n\r\n    from boto.dynamodb2.layer1 import DynamoDBConnection\r\n\r\n    client = DynamoDBConnection(\r\n        host='localhost',\r\n        port=8000,\r\n        aws_access_key_id='anything',\r\n        aws_secret_access_key='anything',\r\n        is_secure=False)\r\n\r\n    print(client.list_tables())\r\n\r\nThe snippet produces this output:\r\n\r\n    {'TableNames': []}"},"comment":{"url":"https://api.github.com/repos/boto/boto3/issues/comments/157806234","html_url":"https://github.com/boto/boto3/issues/373#issuecomment-157806234","issue_url":"https://api.github.com/repos/boto/boto3/issues/373","id":157806234,"user":{"login":"michelesr","id":2516077,"avatar_url":"https://avatars.githubusercontent.com/u/2516077?v=3","gravatar_id":"","url":"https://api.github.com/users/michelesr","html_url":"https://github.com/michelesr","followers_url":"https://api.github.com/users/michelesr/followers","following_url":"https://api.github.com/users/michelesr/following{/other_user}","gists_url":"https://api.github.com/users/michelesr/gists{/gist_id}","starred_url":"https://api.github.com/users/michelesr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michelesr/subscriptions","organizations_url":"https://api.github.com/users/michelesr/orgs","repos_url":"https://api.github.com/users/michelesr/repos","events_url":"https://api.github.com/users/michelesr/events{/privacy}","received_events_url":"https://api.github.com/users/michelesr/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T18:12:21Z","updated_at":"2015-11-18T18:12:21Z","body":"Is it possible to set the credential inside a virtualenv, or to set an environment variable to change the default credential file? "}}