Kodi Community Forum
Is Pickle (and/or cPickle) supported in XBMC? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: Is Pickle (and/or cPickle) supported in XBMC? (/showthread.php?tid=4320)



- Alexpoet - 2004-06-25

i have a basic comm function i've written that pickles an object into a string, sends the length of the string over a socket (so the receiving socket knows how long to listen), and then sends the object string.

then the receiving function unpickles the string back into a python object.

this is incredibly convenient for server/client relationships over a network, where you can actually pass a python object from the server to the client (in this instance, an opened image object).

my problem is, when i try to send anything to my xbox using this comm function, i get an error from pickle saying the string isn't reliable.

i can get the exact error message over lunch. just checking to see if pickle is supposed to work in xbmc.


- Alexpoet - 2004-06-25

ack! nevermind.

it was "insecure string pickle," and the error just popped up on my pc test client, so it's probably not an xbmc thing.