Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2002

dnspython errors causing SRV polling tests to fail on CPython 2.7

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.10
    • Affects Version/s: 3.9
    • Component/s: None
    • Labels:
      None

      SRV polling tests are failing on pymongo master with CPython 2.7 in EVG:
      https://evergreen.mongodb.com/version/mongo_python_driver_3236994c817431559deb549cc0a89fb92b8c40f4

      Here is the traceback:

       ERROR: super() argument 1 must be type, not None (ConfigurationError)
       Traceback (most recent call last):
         File "/data/mci/20f7d84206ae0261b89f90afa9cfbd1e/src/test/__init__.py", line 432, in wrap
           return f(*args, **kwargs)
         File "/data/mci/20f7d84206ae0261b89f90afa9cfbd1e/src/test/__init__.py", line 432, in wrap
           return f(*args, **kwargs)
         File "/data/mci/20f7d84206ae0261b89f90afa9cfbd1e/src/test/test_dns.py", line 64, in run_test
           result = parse_uri(uri, validate=False)
         File "/data/mci/20f7d84206ae0261b89f90afa9cfbd1e/src/pymongo/uri_parser.py", line 464, in parse_uri
           dns_options = dns_resolver.get_options()
         File "/data/mci/20f7d84206ae0261b89f90afa9cfbd1e/src/pymongo/srv_resolver.py", line 63, in get_options
           raise ConfigurationError(str(exc))
       ConfigurationError: super() argument 1 must be type, not None
      

      In preliminary testing, it has not been possible to reproduce the failures. Repro was attempted both locally on OSX as well as on a spawn host with the Python toolchain. Repro was also attempted solely with dnspython but was unsuccessful.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: