[Tutor] Asking about pi_switch

Alex Kleider akleider at sonic.net
Thu Mar 2 20:30:43 EST 2017


> On 02/03/17 22:20, Quang nguyen wrote:
> 
>> Right now, I need to use pi_switch in order to send data through RF 
>> system
>> by Pi2. Until now, I installed everything it need from an article on 
>> the
>> internet. Those things are python-dev, libboost-python-dev, 
>> python-pip, and
>> I used pip to install pi_switch.
>> 
>> I think it just compatible with python2, and I cannot import it to 
>> python3.
>> 
>> Are there any ways I can import it to python3 or execute python2 
>> script
>> which has pi_switch by python3 script?.

Sorry, Quang, I got your problem backwards- Raspbian comes with 
python2.7.
Are you sure you are using Python 3?  You would have had to take special 
measures to do so.

check here: https://github.com/lexruee/pi-switch-python
and note that rpi-rf is recommended instead.


More information about the Tutor mailing list