Hi. I installed the newest SDK today. The installation went well. I read the manual and it tells me to run scripts from the command prompt, so I did.
Running ‘python’ to begin with, to see if it was installed, opened up a Windows install box for me to grab Python 3.8.
Now when I run ‘Panda3D/samples/python music-box’, I get that error message.
I’ve opened an IDE called Atom to add in the code,
# and we can run!
def main():
mb = MusicBox()
base.run()
main()
Sorry, I’m not sure what you mean.
If I type ‘python’ in the command prompt I get the interpreter. If I type ‘python music-box’ I get a single line that tells me it cannot find the main module.
Looking at the sample folder, I note that its Python file is named “main.py”, not “music-box.py”–when you run the “python” command, are you perhaps passing in the name of the sample-program’s directory (which is named “music-box”), rather than that of the program’s Python file? Indeed, I do note that if I attempt to do so, I do get the error that you describe.