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

Revert import guard on asyncio

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Context

      In PYTHON-4781 we added an import guard for the case where asyncio wasn't available on the system. However, asyncio imports have shown up in other files, and it turns out there was another fix needed on our end: GODRIVER-3371. For more context, system environment variables are required on Windows ([python/cpython#118234|https://github.com/python/cpython/issues/118234). We can't support overriding env when importing pymongo from in a subprocess, because it is a limitation of CPython.

      Definition of done

      Remove the import guard.

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None