Score:0

python3-serial miniterm.py location

ru flag

I am trying to install python3-serial on ubuntu (18.04 and 20.04) and can't seem to get miniterm.py in PATH.

From what I've read, it should be installed either in /usr/bin/miniterm.py or /usr/local/bin/miniterm.py, but it doesn't get installed anywhere. I have tried the following:

  1. sudo apt install -y python3-serial
  2. pip install pyserial in a virtual environment
  3. sudo pip install pyserial global

which miniterm.py returns nothing every time. I can't find it anywhere.

What do you advise?

hr flag
For the first method, you may find this helpful - [How do I get a list of installed files from a package?](https://askubuntu.com/questions/32507/how-do-i-get-a-list-of-installed-files-from-a-package). It looks like the executable is named `pyserial-miniterm` (`/usr/bin/pyserial-miniterm`) rather than `miniterm.py`
Bogdan Prădatu avatar
ru flag
Thanks, ran dpkg-query -L python3-serial | grep miniterm and it seems it installs in /usr/bin/miniterm. I wonder if /usr/local/bin/miniterm.py is something from python 2.
Score:0
ru flag

So, after fiddling around with pyserial, I have found out that, if installed using the setup.py script, miniterm.py will be installed in /usr/local/bin. I have tested this for pyserial 2.7 and 3.4.

For the newest version, though, which is 3.5, as @steeldriver said in his comment, pyserial-miniterm will be installed instead of miniterm.py.

When installing through apt, on ubuntu 18.04 pyserial 3.4-2 is installed and nothing is added in /usr/bin or /usr/local/bin. Or maybe my setup is broken or something, I don't know. On ubuntu 20.04 pyserial 3.4-5.1 will be installed through apt and miniterm will be put in /usr/bin.

All in all, this is really confusing.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.