Manuel
> <module> AttributeError: 'module' object has no attribute
> 'c_wchar'
This is because we don't have unicode support, 'B' is unsigned byte.
I fixed this problem by doing:
import ctypes
from _ctypes import _SimpleCData
class c_wchar(_SimpleCData):
_type_ = 'c'
def __init__(self, *args, **kwargs):
raise "Not implemented in Android"
ctypes.c_wchar = c_wchar
That fixed the first problem, but raised the next one, which is we don't
have semaphores for multiprocessing in Android as bionic doesn't seem to
have support for it, sorry but I think you will not be able to use
pysage at all.
Manuel
socket issue.
<module> AttributeError: 'module' object has no attribute
'c_wchar'
What's your source code now?Hi,socket issue.
I changed the pysage transport.py file in the Class IPCTransport(Transport). I updated the call to processing.connection.Listener(family='AF_INET') where processing is the multiprocessing lib.
This is because we don't have unicode support, 'B' is unsigned byte.
<module> AttributeError: 'module' object has no attribute
'c_wchar'
I fixed this problem by doing:
import ctypes
from _ctypes import _SimpleCData
class c_wchar(_SimpleCData):
_type_ = 'c'
def __init__(self, *args, **kwargs):
raise "Not implemented in Android"
ctypes.c_wchar = c_wchar
So did you make this change to multiprocessing lib?? Or Sharedctypes??
That fixed the first problem, but raised the next one, which is we don't have semaphores for multiprocessing in Android as bionic doesn't seem to have support for it, sorry but I think you will not be able to use pysage at all.
So Android in the bionic libc does not semaphores? So that meaning inter-process communication is not possible?? Or Is it a muttiprocessing lib issue and a different lib may work.