Azure/azure-cosmos-python

Samples Not Working - Python 2.7.11 Windows With py documentdb V2.0

Closed this issue · 5 comments

Samples Not Working - Python 2.7.11 Windows With py documentdb V2.0

Actually not sure if I've ever got the samples working.

In addition to that I have a project that was working with pydocumentdb V1.9 but it no longer works with V2.0.

It seems like many methods no longer return what they used to? Eg: client.QueryDatabases()

Error messages all point to an issue with iterators? Not sure how to progress from here.

@kradNZ
Could you please provide more information on what the error message is? possibly the stacktrace and also your code.

@kradNZ Could you send us the sample code with the expected and actual results?

python Program.py
Traceback (most recent call last):
File "Program.py", line 29, in
HOST = cfg.settings['host']
AttributeError: 'module' object has no attribute 'settings'

Is the response out of the box for the samples.

These are defined in the config.py file. This is a shared file across projects in the solution. And this works when we run any project as a whole not the individual file program.py. See also #94

Closing this issue due to age. Active development of our Python SDK has moved to https://github.com/Azure/azure-sdk-for-python. We have also released 4.0 which includes many updates and new features. If this issue still needs our attention, please reopen it in the new repository.