2011-01-14, 14:57
I fiddling with the idea of controlling an arduino from xbmc via an addon, to do this I need to be able to send command over serial using python.
The problem comes when I add pyserial, I added it to the /system/python/Lib folder as shown on th wiki, but for some reason it calls for 'ctypes', so I have downloaded and added that to the same folder and I get
ctypes says is it works on python 2.3+ and is included in 2.5+, so should work on the version 2.4.5 used in XBMC, but it doesn't?
The problem comes when I add pyserial, I added it to the /system/python/Lib folder as shown on th wiki, but for some reason it calls for 'ctypes', so I have downloaded and added that to the same folder and I get
Code:
File "special://xbmc/system/python/Lib\ctypes\__init__.py", line 10, in ?
from _ctypes import Union, Structure, Array
ImportError: No module named _ctypes
ctypes says is it works on python 2.3+ and is included in 2.5+, so should work on the version 2.4.5 used in XBMC, but it doesn't?