Skip to content

Getting error as 'Instance of Client has no entity_sets as member' #125

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

Closed
sohebkm opened this issue Aug 20, 2020 · 1 comment
Closed

Getting error as 'Instance of Client has no entity_sets as member' #125

sohebkm opened this issue Aug 20, 2020 · 1 comment
Labels
V4 OData V4

Comments

@sohebkm
Copy link

sohebkm commented Aug 20, 2020

please help me with this error. refer the screenshot below.
image

Odata version: V4
Code:

import requests
import requests.auth
from requests_ntlm import HttpNtlmAuth
import pyodata

// This is just the example credential
username = "example"
password = '*********'

// Good unit is the name of the entity
directorURL = 'https://odata.ca-build.com/odata/GoodUnit'

directorSession = requests.session()
directorSession.auth= HttpNtlmAuth(username,password)
directorReqData = pyodata.Client(directorURL,directorSession)

abc = directorReqData.entity_sets.GoodUnit.get_entity(1).execute()

@filak-sap filak-sap added the V4 OData V4 label Aug 20, 2020
@filak-sap
Copy link
Contributor

I am terribly sorry but OData V4 hasn't been merged to the latest version of PyOData. Please, subscribe for news at #39

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

No branches or pull requests

2 participants