I believe the problem you're facing with PSM might be related to having multiple versions of Python3 installed in your system. Do a quick
which python3
to check where your python3 alias is pointing to. Also check if there are multiple python binaries in /usr/bin with
ls -la /usr/bin/python*
What happens is that PSM starts python3 using the python3 alias on your system. If you have multiple python3 versions installed, it can be possible that pip3 is installing
pymodbus in one version but psm is starting the version that does not have it installed.
I am hitting the same bug on RPi 3
I tried multiple clean installation of OpenPLC and without luck.
Here is the distro info
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
And it doesn't look like I have multiple python3 installed
pi@raspberrypi:~ $ which python3
/usr/bin/python3
pi@raspberrypi:~ $ ls -la /usr/bin/python*
lrwxrwxrwx 1 root root 7 Mar 5 2019 /usr/bin/python -> python2
lrwxrwxrwx 1 root root 9 Mar 5 2019 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 2984816 Oct 11 2019 /usr/bin/python2.7
lrwxrwxrwx 1 root root 9 Mar 26 2019 /usr/bin/python3 -> python3.7
-rwxr-xr-x 2 root root 4275580 Jan 23 2021 /usr/bin/python3.7
lrwxrwxrwx 1 root root 36 Jan 23 2021 /usr/bin/python3.7-config -> arm-linux-gnueabihf-python3.7-config
-rwxr-xr-x 2 root root 4275580 Jan 23 2021 /usr/bin/python3.7m
lrwxrwxrwx 1 root root 37 Jan 23 2021 /usr/bin/python3.7m-config -> arm-linux-gnueabihf-python3.7m-config
lrwxrwxrwx 1 root root 16 Mar 26 2019 /usr/bin/python3-config -> python3.7-config
lrwxrwxrwx 1 root root 10 Mar 26 2019 /usr/bin/python3m -> python3.7m
lrwxrwxrwx 1 root root 17 Mar 26 2019 /usr/bin/python3m-config -> python3.7m-config