Git Product home page Git Product logo

Comments (9)

yishuiliunian avatar yishuiliunian commented on June 2, 2024 1

I have created a PR to fix it. But it is waiting for approval.

#456

from azure-devops-python-api.

brbeec avatar brbeec commented on June 2, 2024 1

@nechvatalp I'm no longer seeing ModuleNotFoundError when calling get_git_client() after #457, however, I'm now seeing DeserializationError when calling get_commits().

azure.core.exceptions.DeserializationError: ("Unable to deserialize to object: type, KeyError: 'ChangeCountDictionary'", KeyError('ChangeCountDictionary'))

It doesn't look like ChangeCountDictionary is defined in models.py?

from azure-devops-python-api.

brbeec avatar brbeec commented on June 2, 2024 1

Our script is working again with 7.1.0b3. Thanks for the quick turnaround!

from azure-devops-python-api.

MarcoPalu97 avatar MarcoPalu97 commented on June 2, 2024

Same issue spotted by me:

File "/home/vsts/.local/lib/python3.10/site-packages/azure/devops/released/client_factory.py", line 135, in get_git_client
return self._connection.get_client('azure.devops.v7_0.git.git_client.GitClient')
File "/home/vsts/.local/lib/python3.10/site-packages/azure/devops/connection.py", line 44, in get_client
client_class = self._get_class(client_type)
File "/home/vsts/.local/lib/python3.10/site-packages/azure/devops/connection.py", line 52, in _get_class
imported = import(module_name)
File "/home/vsts/.local/lib/python3.10/site-packages/azure/devops/v7_0/git/init.py", line 10, in
from .git_client import GitClient
ModuleNotFoundError: No module named 'azure.devops.v7_0.git.git_client'

Seems like you missed to create the module git_client.py into the v7_0 of the git client, I found it when comparing with v6_0

from azure-devops-python-api.

jknoy avatar jknoy commented on June 2, 2024

Seeing the same problem. Looks like git_client.py was deleted as part of v5.1 cleanup, but now missing and causing errors.

from azure-devops-python-api.

detmoo avatar detmoo commented on June 2, 2024

Also have problem with this. Looks like from .git_client import GitClient is no longer valid import. Initial look seems like GitClient might have become GitClientBase in v7

from azure-devops-python-api.

nechvatalp avatar nechvatalp commented on June 2, 2024

Thanks for reporting, investigating

from azure-devops-python-api.

nechvatalp avatar nechvatalp commented on June 2, 2024

This should be fixed in 7.1.0b2, the source we generate from is setup to generate git_client_base, previous maintainer created the git_client manually as it is more intuitive I wasn't aware of that so didn't include this file.

Added it back in.

from azure-devops-python-api.

nechvatalp avatar nechvatalp commented on June 2, 2024

Yes, issue was indeed with the ChangeCountDictionary I updated the models, @brbeec could you check if the issue is resolved for you in 7.1.0b3?

from azure-devops-python-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.