Skip to content

cannot import name 'run' (aio_compat.py) #12261

@pauldj54

Description

@pauldj54

I created a simple python function and deployed to a repo. A working colleague migrated to another repo. I cloned the code and tried to debug it again.

When I press F5 I got the following Error:

image

I tried to recreate the function and spend several hours but I was not able to find a solution.

I started visual studio code from the conda shell activating the desired environment. I verified the environment is set in vs code.

Any feedback would be appreciated.

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.86398
  • OS and version: Windows 10 Professional
  • Python version (& distribution if applicable, e.g. Anaconda): Anaconda, Python 3.7.4 and 3.6.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Relevant/affected Python packages and their versions: asyncio 3.4.3
  • Relevant/affected Python-related VS Code extensions and their versions: Azure Functions

After installing the latest version of vscode-python extension I am not able to debug the functions any longer.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions