Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

narayana.jayanthi_191238 avatar image
narayana.jayanthi_191238 asked ·

Getting error get "'connection' is not defined" - week3 workshop

Getting error get "'connection' is not defined" - week3 workshop..

Added

SECURE_CONNECT_BUNDLE = '/workspace/cassandra-workshop-series/week3-AppDev-crud/crud-python/secure-connect-killrvideocluster.zip'

workshop
10 |1000 characters needed characters left characters exceeded

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

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered ·

Bettina's explained why this issue is occurring in question #6499. There's a good chance that you've got the wrong path which is why you can't connect to your Astra database.

If you followed step 3c of the workshop instructions correctly, your secure bundle should have been uploaded to the week3-AppDev-crud/ directory.

On Gitpod, you need to check that the bundle exists in the directory. For example:

$ pwd
/workspace/cassandra-workshop-series/week3-AppDev-crud
$ ls
crud-java
crud-python
materials
README_JAVA.MD
README.MD
secure-connect-killrvideocluster.zip

If you uploaded your secure bundle to the correct location, the correct path would look like:

SECURE_CONNECT_BUNDLE = '/workspace/cassandra-workshop-series/week3-AppDev-crud/secure-connect-killrvideocluster.zip'

Cheers!

2 comments Share
10 |1000 characters needed characters left characters exceeded

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