![]() |
|
#1
|
|||
|
|||
Quote:
When try to send an exception from my python plugin as follows Code:
PyErr_SetString(PyExc_RuntimeError, "errorstring"); data.set( PYTHON_RETURN_OBJECT, NULL); I always get a TypeError instead of the exception i'm trying to communicate. The stacktrace always ends like this: Code:
File "C:\Program Files (x86)\WorldViz\Vizard4\python\viz.py", line 7381, in command return _ipcSend(_VIZ_CMDEXTNODE,self.id,command,mesg,x,y,z,w) TypeError: command must be an int I'm not sure what this typeerror is referring to, as my command is correct, it works without error when not trying to return an exception. Am I doing something wrong? Best and thanks, Dee |
#2
|
|||
|
|||
Can you post the full traceback? It looks like you are using passing an invalid parameter to the command method. As the traceback says, the first argument must be an int, and you are most likely passing some other type.
|
![]() |
Thread Tools | |
Display Modes | Rate This Thread |
|
|