Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-15572

`object of type 'NoneType' has no len()` error in cqlsh with python 3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 4.0, 4.0-alpha4
    • Component/s: Tool/cqlsh
    • Labels:
      None

      Description

      Looks like in Python 3, webbrowser._tryorder can be NoneType and throw error like below:

      Traceback (most recent call last):
        File ".\bin\cqlsh.py", line 99, in <module>
          if len(webbrowser._tryorder) == 0:
      TypeError: object of type 'NoneType' has no len()
      

        Attachments

          Activity

            People

            • Assignee:
              yukim Yuki Morishita
              Reporter:
              yukim Yuki Morishita
              Authors:
              Yuki Morishita
              Reviewers:
              Dinesh Joshi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: