question

rht.rajput_193125 avatar image
rht.rajput_193125 asked Erick Ramirez edited

How can I update Python driver in the Academy VM?

In order to finish Exercise 5 – Drivers for DS201

I am trying to update driver using : sudo pip install --upgrade cassandra-driver

but getting following error. Need help here so i can finish this exercise.

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 0x7f282e0575d0>: 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 0x7f282e057710>: 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 0x7f282e057850>: 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 0x7f282e057990>: 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 0x7f282e057ad0>: 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
academyds201python driver
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

bettina.swynnerton avatar image
bettina.swynnerton answered

Hi @rht.rajput_193125,

this error is consistent with a lack of network connectivity when trying to upgrade the driver. Can you check your internet connection from the VM?

I reproduced the error by taking the VM off the network for a moment.

If connected properly, the command results in a successful upgrade of the driver.

sudo pip install --upgrade cassandra-driver

I hope this helps!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.