Can't find command line tool

I’ve installed meshtastic according to the meshtastic-python instructions. I can run the sample python script to send a message to the mesh. But I can’t run or find any meshtastic command line tool. There’s nothing in the scripts folder called meshtastic.

MINGW64 /d/Program Files/Python38/Scripts
$ pip3 install --upgrade meshtastic
Requirement already satisfied: meshtastic in d:\program files\python38\lib\site-packages (1.1.46)
Requirement already satisfied: pyserial>=3.4 in d:\program files\python38\lib\site-packages (from meshtastic) (3.5)
Requirement already satisfied: easy-table>=0.0.4 in d:\program files\python38\lib\site-packages (from meshtastic) (0.0.4)
Requirement already satisfied: dotmap>=1.3.14 in d:\program files\python38\lib\site-packages (from meshtastic) (1.3.23)
Requirement already satisfied: pexpect>=4.6.0 in d:\program files\python38\lib\site-packages (from meshtastic) (4.8.0)
Requirement already satisfied: pygatt>=4.0.5 in d:\program files\python38\lib\site-packages (from meshtastic) (4.0.5)
Requirement already satisfied: protobuf>=3.13.0 in d:\program files\python38\lib\site-packages (from meshtastic) (3.14.0)
Requirement already satisfied: pypubsub>=4.0.3 in d:\program files\python38\lib\site-packages (from meshtastic) (4.0.3)
Requirement already satisfied: pyqrcode>=1.2.1 in d:\program files\python38\lib\site-packages (from meshtastic) (1.2.1)
Requirement already satisfied: ptyprocess>=0.5 in d:\program files\python38\lib\site-packages (from pexpect>=4.6.0->meshtastic) (0.7.0)
Requirement already satisfied: six>=1.9 in d:\program files\python38\lib\site-packages (from protobuf>=3.13.0->meshtastic) (1.15.0)
Requirement already satisfied: enum-compat in d:\program files\python38\lib\site-packages (from pygatt>=4.0.5->meshtastic) (0.0.3)

1 Like

hmm - is it possible the pip3 command you ran is for a different version of python and therefore it used a differed scripts dir (that is not in your path)?

That must have been it, I uninstalled and reinstalled python and now it works.

In the meantime I also tried running it on a raspberry pi, but when I run meshtastic I get this error

ImportError: cannot import name ‘EasyTable’ from ‘easy_table’ (usr/local/lib/python3.7/dist-packages/easy_table/init.py)

oh interesting! a recent change requires easy_table and for some reason the rasberrypi specific pypi server has a newer lib than the others. Fixed by specifying the version we required (not allowing newer versions).

pip3 install --upgrade meshtastic
should fix it

That fixed it! Thank you

1 Like