Tying to recompile OLD panda3d code

What is the error you get?
There are two (if not more) possibilities: either an import failure (or you forgot one), but I also remember the getSolid function returns a const object now, and you have to use the modifySolid method to modify collisionsolids now.