Error : Peers not reachable

I have recently started using aerospike for my organisation, I’m trying to connect with aerospike client using python.

here is my code

import aerospike
import settings
import logging

def main():
    logging.basicConfig(level=logging.DEBUG)
    
    seed_nodes = settings.AEROSPIKE_SEED   # [('127.0.0.1', 3000)]

    config = {'hosts': seed_nodes}
    
    try:
        client = aerospike.client(config).connect()
        logging.info("Connected to Aerospike server successfully.")
        return client
    except aerospike.exception.ClientError as e:
        logging.error(f"Failed to connect to Aerospike server: {e}")
        raise

if __name__ == '__main__':
    main()

The error I am getting:

Traceback (most recent call last):
  File "/Users/yashmulchandani/Documents/Work/Projects/track/core/test.py", line 21, in <module>
    main()
  File "/Users/yashmulchandani/Documents/Work/Projects/track/core/test.py", line 13, in main
    client = aerospike.client(config).connect()
             ^^^^^^^^^^^^^^^^^^^^^^^^
exception.ClientError: (-1, 'Peers not reachable: 127.0.0.1:3000', 'src/main/aerospike/as_cluster.c', 708, False)

Do you have a server running on this same hots (127.0.0.1)? It seems the client is jut not able to connect to port 3000 on the localhost 127.0.0.1.