libRocket example

Im new to panda3d and i was so excited to find out that panda3d integrated librocket. Problem - there was no sample of how to initialize and use library. From other librocket thread i put together code written by other people to tiny working demo:

code:

from direct.showbase.ShowBase import ShowBase 
from panda3d import rocket 
from panda3d.rocket import * 

class MyApp(ShowBase): 

    def __init__(self): 
        ShowBase.__init__(self) 
        
        rocket.LoadFontFace("./data/Delicious-Roman.otf")
        rocket.LoadFontFace("./data/Delicious-Bold.otf")
        rocket.LoadFontFace("./data/Delicious-BoldItalic.otf")
        rocket.LoadFontFace("./data/Delicious-Italic.otf")
    
        r = RocketRegion.make('pandaRocket', base.win) 
        r.setActive(1) 
        
        ih = RocketInputHandler() 
        base.mouseWatcher.attachNewNode(ih) 
        r.setInputHandler(ih) 
        
        context = r.getContext()
        
        document = context.LoadDocument("./data/demo.rml");
        if document:
            document.Show();
app = MyApp() 
app.run() 

After trying this code I’ve got this error message:

Traceback (most recent call last):
  File "MyRocket.py", line 4, in <module>
    from panda3d.rocket             import *
  File "/usr/share/panda3d/panda3d.py", line 204, in __getattr__
    for obj in self.__manager__.libimport(lib).__dict__:
  File "/usr/share/panda3d/panda3d.py", line 133, in libimport
    raise ImportError, message
ImportError: DLL loader cannot find _rocketcore.

What can be wrong?

You don’t have a build of Panda made with libRocket support or your libRocket build doesn’t have Python support.

I’ve downloaded pre-built SDK for Ubuntu from this page.

Well, if rocket is not in this build, how to fix it gently?