well it seems plain encoding worked. Now the next issue is how to synchronise error reporting between blender and pharo. I am receiving the data from the socket with some lag. Again most likely I am doing something wrong. Anyway thanks all for your help.��


On Sat, Jul 26, 2014 at 5:16 PM, Ben Coman <btc@openinworld.com> wrote:
kilon alios wrote:
You know at times I admire how stupid I can be. So the problem was not the fault of Blender , of Python or ��of Pharo���. It was me , me and me :D

I was reading the Python 2 docs on sending data via sockets when I should be reading the Python 3 docs , because Blender uses Python 3 and in Python 2 data is sent as string and in Python 3 data is sent as binary.All I had to do was to convert the string to a binary . I would have seen the error but unfortunately because of a strange bug in Blender I cannot run it from terminal and so it does not display any errors :D

So yes problem solved and off I go to next stupid mistake. Coding is such a humiliating experience :D

"troubleshooting" => The art of stepping backwards through your assumptions :)