I’ve extremely new (day one) to Panda3d, so I hope I’m doing something wrong here.
I’m using Panda3d 1.7.2 and Mac OS X 10.6.7 (MacBook Pro). I’ve run some samples and gone through the hello world tutorial and everything has worked fine. However, when I run the following trivial program, it crashes:
from pandac.PandaModules import loadPrcFileData
loadPrcFileData("", "want-directtools #t")
loadPrcFileData("", "want-tk #t")
import direct.directbase.DirectStart
run()
Am I doing something wrong or is this a known issue? Stack trace:
2012-01-21 09:07:58.504 ppython[11152:903] -[NSApplication _setup:]: unrecognized selector sent to instance 0x5e89890
2012-01-21 09:07:58.505 ppython[11152:903] An uncaught exception was raised
2012-01-21 09:07:58.505 ppython[11152:903] -[NSApplication _setup:]: unrecognized selector sent to instance 0x5e89890
2012-01-21 09:07:58.506 ppython[11152:903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSApplication _setup:]: unrecognized selector sent to instance 0x5e89890'
*** Call stack at first throw:
(
0 CoreFoundation 0x945296ba __raiseError + 410
1 libobjc.A.dylib 0x98877509 objc_exception_throw + 56
2 CoreFoundation 0x9457690b -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x944cfc36 ___forwarding___ + 950
4 CoreFoundation 0x944cf802 _CF_forwarding_prep_0 + 50
5 Tk 0x1a6afea8 TkpInit + 601
6 Tk 0x1a61b60a Tk_PkgInitStubsCheck + 2489
7 _tkinter.so 0x1a4f9fe8 Tcl_AppInit + 130
8 _tkinter.so 0x1a4f9f09 var_perform + 2295
9 Python 0x0007ad1f PyEval_EvalFrameEx + 16275
10 Python 0x0007caaa PyEval_EvalCodeEx + 1734
11 Python 0x00027472 PyClassMethod_New + 2213
12 Python 0x0000c268 PyObject_Call + 50
13 Python 0x00015d77 PyClass_New + 1710
14 Python 0x0000c268 PyObject_Call + 50
15 Python 0x000760e0 PyEval_CallObjectWithKeywords + 211
16 Python 0x0001562f PyInstance_New + 330
17 Python 0x0000c268 PyObject_Call + 50
18 Python 0x0007c319 PyEval_EvalFrameEx + 21901
19 Python 0x0007caaa PyEval_EvalCodeEx + 1734
20 Python 0x0007af76 PyEval_EvalFrameEx + 16874
21 Python 0x0007caaa PyEval_EvalCodeEx + 1734
22 Python 0x0007cb4f PyEval_EvalCode + 87
23 Python 0x0008bbd4 PyImport_ExecCodeModuleEx + 240
24 Python 0x0008c771 PyImport_AppendInittab + 1145
25 Python 0x0008e3a4 PyImport_ReloadModule + 1369
26 Python 0x0008e6d5 PyImport_ReloadModule + 2186
27 Python 0x0008ed36 PyImport_ReloadModule + 3819
28 Python 0x0008edde PyImport_ImportModuleLevel + 50
29 Python 0x00074f7f _PyBuiltin_Init + 13603
30 Python 0x0000c268 PyObject_Call + 50
31 Python 0x000760e0 PyEval_CallObjectWithKeywords + 211
32 Python 0x0007a0f9 PyEval_EvalFrameEx + 13165
33 Python 0x0007caaa PyEval_EvalCodeEx + 1734
34 Python 0x0007af76 PyEval_EvalFrameEx + 16874
35 Python 0x0007caaa PyEval_EvalCodeEx + 1734
36 Python 0x0007af76 PyEval_EvalFrameEx + 16874
37 Python 0x0007aeae PyEval_EvalFrameEx + 16674
38 Python 0x0007caaa PyEval_EvalCodeEx + 1734
39 Python 0x00027472 PyClassMethod_New + 2213
40 Python 0x0000c268 PyObject_Call + 50
41 Python 0x00015d77 PyClass_New + 1710
42 Python 0x0000c268 PyObject_Call + 50
43 Python 0x000760e0 PyEval_CallObjectWithKeywords + 211
44 Python 0x0001562f PyInstance_New + 330
45 Python 0x0000c268 PyObject_Call + 50
46 Python 0x0007c319 PyEval_EvalFrameEx + 21901
47 Python 0x0007caaa PyEval_EvalCodeEx + 1734
48 Python 0x0007cb4f PyEval_EvalCode + 87
49 Python 0x0008bbd4 PyImport_ExecCodeModuleEx + 240
50 Python 0x0008c771 PyImport_AppendInittab + 1145
51 Python 0x0008e3a4 PyImport_ReloadModule + 1369
52 Python 0x0008e81a PyImport_ReloadModule + 2511
53 Python 0x0008ec2b PyImport_ReloadModule + 3552
54 Python 0x0008edde PyImport_ImportModuleLevel + 50
55 Python 0x00074f7f _PyBuiltin_Init + 13603
56 Python 0x0000c268 PyObject_Call + 50
57 Python 0x000760e0 PyEval_CallObjectWithKeywords + 211
58 Python 0x0007a0f9 PyEval_EvalFrameEx + 13165
59 Python 0x0007caaa PyEval_EvalCodeEx + 1734
60 Python 0x0007cb4f PyEval_EvalCode + 87
61 Python 0x00094a03 Py_CompileString + 111
62 Python 0x00094aaf PyRun_FileExFlags + 139
63 Python 0x00095f34 PyRun_SimpleFileExFlags + 784
64 Python 0x000a1f2c Py_Main + 3226
65 ppython 0x00001eb5 0x0 + 7861
66 ??? 0x00000002 0x0 + 2
)
Trace/BPT trap