NodePath.ls() doesn't return anything

There are no ideas since you did not provide the code.

from direct.showbase.ShowBase import ShowBase

class MyApp(ShowBase):

    def __init__(self):
        ShowBase.__init__(self)

        self.model = self.loader.loadModel("box")
        self.model.reparentTo(render)
        print(render.ls())

app = MyApp()
app.run()
PandaNode render S:(CullFaceAttrib RescaleNormalAttrib)
  ModelNode camera
    Camera cam ( PerspectiveLens )
      PerspectiveLens fov = 50.942 30
  ModelRoot box.egg
    GeomNode box (1 geoms: S:(TextureAttrib))
None