So I packaged up the game I’ve been working on with packp3d and built an installer for it with pdeploy. Then I installed the game on my system and tried to run it. It crashed on startup, so I went digging in my local appdata, snatched up the log, and had a look-see.
Traceback (most recent call last):
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\Messenger.py", line 415, in __taskChainDispatch
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\Messenger.py", line 473, in __dispatch
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\p3d\AppRunner.py", line 748, in __startIfReady
TypeError: main() takes no arguments (1 given)
:task(error): Exception occurred in PythonTask Messenger-default
Traceback (most recent call last):
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\p3d\AppRunner.py", line 636, in run
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\task\Task.py", line 502, in run
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\task\Task.py", line 460, in step
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\Messenger.py", line 415, in __taskChainDispatch
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\showbase\Messenger.py", line 473, in __dispatch
File "C:\buildslave\release_rtdist_win32\build\panda3d\built_cmu\direct\p3d\AppRunner.py", line 748, in __startIfReady
TypeError: main() takes no arguments (1 given)
:TaskManager: TaskManager.destroy()
:display: Closing wglGraphicsWindow
Failure on startup.
Something called main is being fed an argument it ought not to be given. Thing is, there aren’t any methods, functions, or classes called main in my game. In fact, the only thing called main is the module that launches the game. Another funny thing, when my roommate installed the game on his computer it got further along than on mine (the window resized correctly and the main menu came up, though it crashed shortly there after).
I haven’t got a ghost of a clue as to where to start debugging this, since I haven’t got anything called main to be producing this error. Any thoughts on what the problem might be?