0

Even which is not running on boto3 version 1.12.19 updated version

depend on this ticket, errorMessage": "'Neptune' object has no attribute 'stop_db_cluster"

Kelvin Lawrence
  • 14,674
  • 2
  • 16
  • 38
eksm27
  • 23
  • 4

1 Answers1

2

I have tested Amazon Neptune API with boto3 version 1.12.19 successfully as follows :

My sample code:

import json
import boto3

def main():

    session = boto3.Session(profile_name='syumaK')
    # Any clients created from this session will use credentials
    # from the [syumaK] section of ~/.aws/credentials.

    NeptuneClient = session.client('neptune')

    # print(boto3.__version__)

    response = NeptuneClient.start_db_cluster(
        DBClusterIdentifier='syumak-test-cluster'
    )

    print response


if __name__ == '__main__':
    main()

My sample response:

enter image description here

Resolution Steps:

1. Check the current version of boto3 :

pip show boto3

or

>>> import boto3
>>> boto3.__version__

If the output is anything less than the current version (1.12.19 ) then proceed to upgrade your boto3 version as shown below.

2. Upgrade your boto3:

pip install botocore --upgrade
pip install boto3 --upgrade

Note: You'll need to log out for the changes to take effect

Hope this helps!

aksyuma
  • 2,957
  • 1
  • 15
  • 29