0

enter image description hereI'm trying to control a relay board (USB RLY08) using a section of python code I found online (https://github.com/jkesanen/usbrly08/blob/master/usbrly08.py). It is currently returning an error which I'm not sure about.enter image description here Does anyone have any ideas? I'm not actually needing all the code and instead just wanting to turn a single relay on and off.

Thanks.

2
  • Hi, thanks for the suggestions. So I downloaded the pyserial-3.4.tar.gz and unzipped the contents. I then tried to run pip install pyserial from command prompt but I'm getting an error. Anyone any ideas where I'm going wrong? Commented Aug 9, 2018 at 8:04
  • I added another image above to show the error I'm seeing. Thanks Commented Aug 9, 2018 at 8:06

3 Answers 3

1

You are getting this error probably because pyserial module is not installed on your system. Try installing pyserial package from PyPi index using below command :

python -m pip install pyserial
Sign up to request clarification or add additional context in comments.

Comments

0

you need to install pyserial

e.g. with

pip install pyserial

Comments

0

You need to install pyserial.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.