NodePath.place() not working

I am getting the following error when executing the code:

from direct.showbase.ShowBase import ShowBase

base = ShowBase()

panda = loader.loadModel("models/panda")
panda.reparentTo(render)
panda.place()

base.run()
Assertion failed: !is_empty() at line 315 of panda/src/pgraph/nodePath.cxx Traceback (most recent call last): File "", line 1, in File "C:\Panda3D-1.10.8-x64\direct\extensions_native\NodePath_extensions.py", line 409, in place base.startDirect(fWantTk = 1) File "C:\Panda3D-1.10.8-x64\direct\showbase\ShowBase.py", line 3284, in startD irect self.direct = DirectSession.DirectSession() File "C:\Panda3D-1.10.8-x64\direct\directtools\DirectSession.py", line 54, in __init__ self.manipulationControl = DirectManipulationControl() File "C:\Panda3D-1.10.8-x64\direct\directtools\DirectManipulation.py", line 12 , in __init__ self.objectHandles = ObjectHandles() File "C:\Panda3D-1.10.8-x64\direct\directtools\DirectManipulation.py", line 10 77, in __init__ self.xPostGroup = self.xHandles.find('**/x-post-group') AssertionError: !is_empty() at line 315 of panda/src/pgraph/nodePath.cxx

What should I change in the DirectManipulation.py file?

It’s in direct/directtools/DirectManipulation.py
Change this line:

self.scalingNode = self.getChild(0)

To this:

self.scalingNode = NodePath(self)

Thanks! It worked. Now can you explain how the NodePath.place() works?