import pywikibot #tell python that we will be using pywikibot
site=pywikibot.Site('wikidata','wikidata') #Identify the site we will use
repo=site.data_repository()                #Identify the repository
wd = pywikibot.ItemPage(repo, 'Q56095936') #Identify the wanted object in WikiData
wd.get()                                   #Get the information for the object
print('%s' % wd.labels)
       # Gives the description in Dutch
                                           # Raises an exception if not existing
---------------------------------------------------------------------------
EntityTypeUnknownException                Traceback (most recent call last)
<ipython-input-4-d62773b78046> in <module>()
      2 site=pywikibot.Site('wikidata','wikidata') #Identify the site we will use
      3 repo=site.data_repository()                #Identify the repository
----> 4 wd = pywikibot.ItemPage(repo, 'Q56095936') #Identify the wanted object in WikiData
      5 wd.get()                                   #Get the information for the object
      6 print('%s' % wd.labels)

/srv/paws/pwb/pywikibot/page.py in __init__(self, site, title, ns)
   4313         """
   4314         if ns is None:
-> 4315             ns = site.item_namespace
   4316         # Special case for empty item.
   4317         if title is None or title == '-1':

/srv/paws/pwb/pywikibot/site.py in item_namespace(self)
   7449             raise EntityTypeUnknownException(
   7450                 '%r does not support entity type "item"'
-> 7451                 % self)
   7452 
   7453     @property

EntityTypeUnknownException: DataSite("wikidata", "wikidata") does not support entity type "item"