Skip to content

azure-ai-ml failing on python 36 windows #24634

@scbedd

Description

@scbedd

The core of the problem is that...

  1. We have a transitive dependency on pywin32 from azure-identity in the dev_requirements for package azure-ai-ml
  2. During initial venv setup, we install eng/test_tools.txt and dev_requirements.txt
  3. Right before invoking pytest, we install the target package from whatever packaging method we're supposed to be testing.
  1. is where the error pops up:
Installing collected packages: pyjwt, pywin32, websocket-client, pyrsistent, importlib-resources, tqdm, pydash, pathspec, jsonschema, docker, azure-storage-file-share, azure-storage-blob, azure-identity, applicationinsights, azure-ai-ml
  Attempting uninstall: pyjwt
    Found existing installation: PyJWT 2.4.0
    Uninstalling PyJWT-2.4.0:
      Successfully uninstalled PyJWT-2.4.0
  Attempting uninstall: pywin32
    Found existing installation: pywin32 304
    Uninstalling pywin32-304:
      Successfully uninstalled pywin32-304
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'c:\\repo\\sdk-for-python\\sdk\\ml\\azure-ai-ml\\.tox\\whl\\lib\\site-packages\\~ywin32_system32\\pythoncom36.dll'

This even happens when the correct, identical version of pywin32 is installed _already.

(snippet from pip freeze)

...
pytoml==0.1.21
pywin32==304
PyYAML==5.3.1
...

I cannot for the life of me understand why it's uninstalling, but that's where the error is coming from.

If it would just recognize the presence of the correct version, we would be ok. Need to resolve this error.

Metadata

Metadata

Assignees

Labels

Central-EngSysThis issue is owned by the Engineering System team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions