Closed avivtabak closed 1 year ago
Exactlyt the same error, exactly the same modifications done, and worked fine for me. Thank you @avivtabak
Hello, thanks for reporting, this issue should be resolved in newer versions of the Python SDK. Best place to report such issues would be on the repository for python sdk https://github.com/microsoft/azure-devops-python-api
There is an error when calling git_client in Python SDK version 7.1.0b1
This will raise an exception because the imports are wrong in
client_factory.py
:def get_git_client(self): """get_git_client. Gets the 7.1 version of the GitClient :rtype: :class:
""" return self._connection.get_client('azure.devops.v7_1.git.git_client.GitClient')
Suggestion for correction:
return self._connection.get_client('azure.devops.v7_1.git.git_client_base.GitClientBase')
also inazure/devops/v7_1/git/init.py:11 you need to change from:
from .git_client import GitClient
tofrom .git_client_base import GitClientBase
thanks
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.