How do I load a GLTF file? I was able to load a .egg file successfully

I am very new to Panda3D and 3D animation.I’ve installed the panda3d-gltf package. what are the changes I’ve to make in order to load a gltf file? This is the program I used for .egg file and it worked. But when I try loading gltf it says: Couldn’t load model. I tried running the file from Github but I couldn’t see anything though there were no errors. I have very basic knowledge about this and it would really be helpful if I can load gltf models.

from panda3d.core import loadPrcFile
from direct.showbase.ShowBase import ShowBase
#import gltf

class Mywin(ShowBase):
def init(self):


game = Mywin()

If you do not specify a file extension on the filename passed into loadModel(), then .egg is assumed (this can be changed by setting the default-model-extension PRC variable). So, loadModel('mymodels/Jeru2') will look for 'mymodels/Jeru2.egg. Either specify 'mymodels/Jeru2.gltf' or change default-model-extension to .gltf.

Thank you so much, the model is loading. But the model is completely dark. Is there any way I could correct it?