I'm just beggining panda3d on python until a came across a problem with the showbase.py module in the panda3d folder( Which is in site-packages. /home/pi/.local/lib/python3.5/site-packages
) I'm running on a raspberry pi 3B. The location of Showbase.py is /home/pi/.local/lib/python3.5/site-packages/panda3d/direct/src/showbase)
Code :
from panda3d.direct.src.showbase import *
class Window(ShowBase):
def __init__(self):
Showbase.__init__(self)
game = Window()
game.run()
I'm not going to show Showbase.py because it's 3025 lines long :|
Error :
Traceback (most recent call last):
File "/home/pi/Desktop/Pandas3D/window.py", line 3, in <module>
class Window(ShowBase):
NameError: name 'ShowBase' is not defined
Thanks for any help!