Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFound NuGetClient #181

Closed
thisisnaty opened this issue Feb 28, 2019 · 6 comments
Closed

ModuleNotFound NuGetClient #181

thisisnaty opened this issue Feb 28, 2019 · 6 comments
Assignees
Labels

Comments

@thisisnaty
Copy link

I'm trying to use the FeedClient and NuGetClient to download a package from a feed. Getting the feed client works fine:

feed_client = connection.get_client('azure.devops.v5_0.feed.feed_client.FeedClient')

But when I try to do the same for the nuget client I get an error saying

Exception has occurred: ModuleNotFoundError
No module named 'azure.devops.v5_0.nuget.nuget_client.NuGetClient'

@thisisnaty
Copy link
Author

I made it work by renaming the files a little bit. Instead of nuGet/nuGet_client I did nuget/nuget_client. Should you guys update it or is this related to my Python version? I'm using 3.6.8

@tedchamb tedchamb self-assigned this Feb 28, 2019
@tedchamb tedchamb added the bug label Feb 28, 2019
@tedchamb
Copy link
Member

Its a bug, the folder and file name should be lowercase. I will fix this.

On a side note, you should leverage the new client factories. Its not a work around for this bug, but it does making getting the clients easier.

feed_client = connection.clients_v5_0.get_feed_client()

@tedchamb
Copy link
Member

#182

@tedchamb
Copy link
Member

@tedchamb
Copy link
Member

tedchamb commented Mar 1, 2019

@thisisnaty Thanks for reporting this. I am going to close this out. Please let me know if you have any other issues.

@tedchamb tedchamb closed this as completed Mar 1, 2019
@thisisnaty
Copy link
Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants