Let me give more specifics.
The following works, showing an empty window:
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
app = MyApp()
app.run()
The following yields the above error:
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
# Load the environment model.
self.scene = self.loader.loadModel("models/environment")
# Reparent the model to render.
self.scene.reparentTo(self.render)
# Apply scale and position transforms on the model.
self.scene.setScale(0.25, 0.25, 0.25)
self.scene.setPos(-8, 42, 0)
app = MyApp()
app.run()
The folder C:\Users\neuronet\Anaconda3\envs\p3d\Library\share\panda3d\models
is in my Python path, and contains environment.egg.pz
.
I tried running from my IDE, as well as the command line, and get the same error. I tried moving the script to the above folder, and get the same error.
I’m sure I’m making a basic error but I can’t get this elementary script to work. This is my third time trying I want to use this software! 
I am in Python 3.6.8, panda3d 1.10 in Anaconda.