So I am trying to setup the code on my Raspberry Pi 3 Model B so make it so it can read and write from a Serial Port. I installed Python 2 and 3 versions of PySerial with:
sudo apt-get install python3-serial sudo apt-get install python-serial
So I should have the most up to date versions of PySerial installed correctly? Well when I was running my code I was just trying to output the port settings with:
Which when I run the module gives me the error:
AttributeError: 'Serial' object has no attribute 'get_settings()'
So I went and changed the code to the old name for the method:
And this worked. So obviously I don't have the newest version of PySerial on my Pi. So I went to do the install again and was told I already have the newest version on my Pi. However, I can obviously tell I don't because of the errors I am getting.
So how would I go about fixing this? Am I just not making the correct terminal calls to install PySerial?