I have my family file, user-config.py and user-password.py in the directory that i am running the following script from
```
import os, sys
import pywikibot as pwb
pwb.config.register_families_folder(os.getcwd())
pwb.login.ClientLoginManager().login()
os.environ['PYWIKIBOT_DIR'] = os.getcwd()
site = pwb.Site()
repo = site.data_repository()
pg = pwb.ItemPage(repo, 'Q10')
pg.get()
```
i get the following error `AttributeError: DataSite instance has no attribute 'entity_sources' `.
But when i use `pg=pwb.Page(repo, 'Main Page'); print(pg.text) `, i get an output.
How do i get pywikibot to work with items on my wikidata instance ?