Cassandra: "cqlsh" line 145 except ImportError, e: ^ SyntaxError: invalid syntax
Installed cassandra 3.11.1 version in Windows 10 with jdk 1.8.0_151 and python 3.6. All paths available in environment variables. When I run cqlsh in command prompt, I get the below error:
File "C:\Cassandra\bin\\cqlsh.py", line 145 except ImportError, e: ^ SyntaxError: invalid syntax
Anyone, Any luck with the above error?
I had the same problem.I downgrade python to 2.7 and it works for me.
cqlsh.py", line 146 except ImportError, e: ^ SyntaxError: invalid syntax
Apache Cassandra, Apache Cassandra is a distributed NoSQL database that began internally at Facebook and was released as an open-source project in July 2008. The platform Cassandra was a princess of Troy, the daughter of King Priam and Queen Hecuba and the fraternal twin sister of Helenus.According to legend, Cassandra had dark brown curly hair and dark brown eyes, and although beautiful and clever, was considered insane.
The error is correct as your syntax is wrong. It should be:
except ImportError as e:
Cassandra, DataStax is the company behind the massively scalable, highly available, cloud-native NoSQL database built on Apache Cassandra. Cassandra, in Greek mythology, the daughter of Priam, the last king of Troy, and his wife Hecuba. In Homer ’s Iliad, she is the most beautiful of Priam’s daughters but not a prophetess. Cassandra Cassandra, statue at the Flower Garden of Kroměříž, Cz.Rep. Pernak
cqlsh requires a Python 2 interpreter. See https://issues.apache.org/jira/browse/CASSANDRA-10190
Apache Cassandra, Cassandra was the daughter of King Priam and Queen Hecuba, lords of Troy, in Greek mythology. She was also known as Alexandra. According to one myth, Cassandra was the daughter of Priam, the king of Troy. She caught the eye of the god Apollo, who was accustomed to getting what he wanted. He was amazed and displeased when she refused his romantic advances, and he became vengeful.
I had the same problem as you. I had installed python 2.7 version as mentioned at Prerequisites and the error no longer appears
Cassandra | Myth, Significance, & Trojan War, Cassandra - Introduction - Apache Cassandra is a highly scalable, high-performance distributed database designed to handle large amounts of data across The Apache Cassandra database is the right choice when you need scalability and high availability without compromising performance. Linear scalability and proven fault-tolerance on commodity hardware or cloud infrastructure make it the perfect platform for mission-critical data.
What is Apache Cassandra™?, Apache Cassandra is the leading NoSQL, distributed database management system, well suited for hybrid and multi-cloud environments. It drives many of Classical Mythology. a daughter of Priam and Hecuba, a prophet cursed by Apollo so that her prophecies, though true, were fated never to be believed. a person who prophesies doom or disaster. a female given name: from a Greek word meaning “helper of men.”
DataStax, In Greek mythology, Cassandra was one of the princesses of Troy, daughter of Priam and Hecuba. According to the Myth, Cassandra was blessed with the gift of Cassandra: A Novel and Four Essays by Christa Wolf, translated by Jan Van Heurck, presents the fall of Troy and its aftermath through the first-person point of view of Cassandra, a daughter of Priam and Hecuba, the king and queen of Troy.
Cassandra: GreekMythology.com, Apache Cassandra is an open source, distributed and decentralized/distributed storage system (database), for managing very large amounts of structured data spread out across the world. It provides highly available service with no single point of failure. Listed below are some of the notable points of Apache Cassandra −
Cassandra - Introduction, Cassandra is a major character in the Disney animated series, Hercules. She is a close friend of Hercules ' and to a lesser extent Icarus, who is hopelessly in love with her, during their time in Prometheus Academy.