| Tomer Filiba tomerfiliba.com |
HiHaving some problems with RPyC and ctypesLocal machine python 2.7.3 RPyC 3.2.3Remote machine python 2.7.4 RPyC 3.2.3from ctypes import *import rpycconn = rpyc.classic.connect(remoteHost)niWlan = conn.modules.ctypes.WinDLL(wlanDll)sessionName = c_char_p('WLANG')compatibilityVersion = c_int(30000)newSession = c_int(0)niWlan.niWLANG_OpenSession(sessionName,compatibilityVersion,byref(wlanSession),byref(newSession))GivesTraceback (most recent call last):File "wlanRx.py", line 477, in <module>main()File "wlanRx.py", line 469, in mainconfigureToolkitSession(niWlan)File "alexandros\wlanRx.py", line 259, in configureToolkitSessionbyref(newSession))File "C:\Python27\lib\site-packages\rpyc\core\netref.py", line 196, in __call__return syncreq(_self, consts.HANDLE_CALL, args, kwargs)File "C:\Python27\lib\site-packages\rpyc\core\netref.py", line 71, in syncreqreturn conn.sync_request(handler, oid, *args)File "C:\Python27\lib\site-packages\rpyc\core\protocol.py", line 438, in sync_requestraise objctypes.ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't know how to convert parameter 1========= Remote Traceback (1) =========Traceback (most recent call last):File "C:\Python27\lib\site-packages\rpyc\core\protocol.py", line 300, in _dispatch_requestres = self._HANDLERS[handler](self, *args)File "C:\Python27\lib\site-packages\rpyc\core\protocol.py", line 532, in _handle_callreturn self._local_objects[oid](*args, **dict(kwargs))ArgumentError: argument 1: <type 'exceptions.TypeError'>: Don't know how to convert parameter 1Executing the same thing insideconn.execute(sampleTxt)with rpyc.classic.redirected_stdio(conn):conn.namespace['sample']()It works nicelyDoes RPyC have support for c_char_p, c_int, byref, pointer and the whole ctypes stuff?Thanks--
---
You received this message because you are subscribed to the Google Groups "rpyc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rpyc+uns...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.