Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-4569

sqlite doesn't mean python 2.6

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • 2.0
    • 1.7.2, 1.8.0, 2.0-developer-preview-3
    • couchbase-bucket
    • Security Level: Public
    • None

    Description

      This is broken in most python scripts I've seen. I don't know why someone thought this was correct at some point, but it's obviously wrong and is copied and pasted everywhere:

      try:
      import sqlite3
      except:
      sys.exit("ERROR: %s requires python version 2.6 or greater" %
      (os.path.basename(sys.argv[0])))

      Not having sqlite3 doesn't mean you don't have at least python 2.6. Having sqlite3 doesn't mean you have python 2.6 or later. These two things are entirely unrelated. It's unclear what the goal is here. Do we want to look for python 2.6 features or do we just want to have a later python which is likely to have the sqlite3 module built?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            steve Steve Yen
            dustin Dustin Sallings (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty