[R-gui] R-wxPython and dynamic linking issues
Vaidotas Zemlys
mpiktas at delfi.lt
Wed Jun 23 08:33:20 CEST 2004
Hi,
>
>
>> But now, when I try to run some code from my preliminary
>> R-wxPython package at:
>> http://bioinf.wehi.edu.au/folders/james/wxPython/
>>
>> I get undefined symbols errors when I try to import the parser
>> module, which is actually a shared library, see:
>> rpm -ql python | grep "\\.so"
>> /usr/lib/python2.2/lib-dynload/parsermodule.so
>>
>> OR I think it might be called "parser.so" rather than
>> "parsermodule.so", depending on your Python version.
>>
>> Currently in my R-wxPython package, the parser module is used by
>> the wxDialogPython() function which is called by:
>> getMethod("wxShow","wxDialog")
>>
>
Ok, I got some errors after all:) This excerpt from R-wxPython User Manual
gave me the error that you was talking about:
> dlg <- wxDlg(size=wxSize(200,160))
> dlg <- wxAdd(dlg,cb=wxCheckBox(label="Use wxPython",name="usewxPython",
> pos=wxPoint(40,50)))
> dlg <- wxBind(dlg,"cb",function(checked)cbVal<<-checked,
+ event="EVT_CHECKBOX",eventMethod="Checked")
> cbVal <- 0 # We haven't specified initial state of checkbox so by default it
> will be unchecked
> dlg <- wxShow(dlg)
Error in .PythonEval(paste("import ", dlg at PythonModule, "; reload(",
dlg at PythonModule, :
Error in Python call: /usr/lib/python2.2/lib-dynload/parser.so:
undefined symbol: _Py_TrueStruct
I'll try to recompile RSPython with the flags you suggested and report the
outcome.
Vaidotas
More information about the R-SIG-GUI
mailing list