When I run db_connection.py, I got error message as below: I followed the instruction in previous post about this problem, and confirmed my file path is correct in window explore. and also I tried to use double slash // or \\ , single quote, double quote, etc. in the path string. None of them work. I still cannot moving forward for later excercise. Please help. Thank you!
SECURE_CONNECT_BUNDLE = "C:\Jie Work\cassandra\secure-connect-jstest.zip"
Output:
runfile('C:/Jie Work/cassandra/Ex02_Connect_to_Cassandra.py', wdir='C:/Jie Work/cassandra') ======================================== Start exercise Unable to connect to the metadata service at https://26502f4d-475b-401a-9bbc-63ab53023eaf-us-east1.db.astra.datastax.com:32279/metadata. Check the cluster status in the cloud console. Failure Closing connection (up to 10s) Traceback (most recent call last): File "<ipython-input-32-41f8bedfed6e>", line 1, in <module> runfile('C:/Jie Work/cassandra/Ex02_Connect_to_Cassandra.py', wdir='C:/Jie Work/cassandra') File "C:\Users\jie\AppData\Local\Continuum\anaconda2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 704, in runfile execfile(filename, namespace) File "C:\Users\jie\AppData\Local\Continuum\anaconda2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 93, in execfile exec(compile(scripttext, filename, 'exec'), glob, loc) File "C:/Jie Work/cassandra/Ex02_Connect_to_Cassandra.py", line 46, in <module> connection.close() NameError: name 'connection' is not defined