Hi,
I am unable to upgrade Cassandra driver as provided in the DS201-Exercise 5 Solution. I am using the VM DS201-VM-6.0 provided in the course.
Please help me.
The following is the error.
ubuntu@ds201-node1:~$ python Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from cassandra.cluster import Cluster Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named cassandra.cluster >>> cluster = Cluster(protocol_version = 3) Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'Cluster' is not defined >>> session = cluster.connect('killrvideo') Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'cluster' is not defined >>> exit()
ubuntu@ds201-node1:~$ sudo pip install --upgrade cassandra-driver DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting cassandra-driver Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd0093c5d0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/cassandra-driver/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd0093c710>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/cassandra-driver/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd0093c850>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/cassandra-driver/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd0093c990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/cassandra-driver/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fbd0093cad0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/cassandra-driver/ Could not find a version that satisfies the requirement cassandra-driver (from versions: ) No matching distribution found for cassandra-driver