View Single Post
Old 13th Apr 2020, 11:52 am   #4
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,586
Default Re: MK14 programming interface - Arduino version

When I first ran the Python uploader script on my Linux netbook it came up with an error along the lines of 'Can't import module: serial'. This was not caused by any sort of failing or oversight in the project, but rather in Python, which does not seem to have native support for serial in/out.

I found I had to separately install the 'pyserial' add on for Python to get past this error. It can be found here, along with instructions for how to add it to an already existing Python3 installation.

https://pypi.org/project/pyserial/

Be aware that if you have both Python 2 and Python 3 installed then the simplest way of installing pyserial in Linux,

Code:
pip install pyserial
will tend to install it in Python 2, not Python 3 - that's what happened to me. I had to follow the more detailed instructions, downloading the pyserial package, unpacking it to a known location and running the 'setup.py' install file with

Code:
python3 setup.py install
rather than

Code:
python setup.py install
..which would install it in Python 2.

Installation of pyserial for Python for Windows will require its own procedure, I refer you to the website above for further details.
SiriusHardware is online now