Meshtastic

Unable to use python app

Flounder:~ jason$ pip3 install --upgrade meshtastic ran fine on MacOS Catalina, no issues. But now I’m stuck.

Flounder:~ jason$ python3
Python 3.7.3 (default, Apr 24 2020, 18:51:23) 
[Clang 11.0.3 (clang-1103.0.32.62)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import meshtastic
Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'meshtastic'

Flounder:~ jason$ pip3 --version
pip 20.1.1 from /usr/local/lib/python3.8/site-packages/pip (python 3.8)

interesting. I don’t have OS-X and a number of people have reported success. Possibly check to see if your PYTHON_PATH environment variable is set to something strange? Or hopefully someone with OS-X will chime into this thread.

Perhaps “pip3 install --upgrade -vvv meshtastic” would give hints about where it installs things? Then try running the “meshtastic” command wrapper it installs as a test.

I followed the install breadcrumbs to /usr/local/lib/python3.8/site-packages/meshtastic and can run meshtastic directly, with

$ meshtastic --device /dev/cu.SLAB_USBtoUART

which results in

Trigger powerFSM 9
Connected to radio

So that’s progress. What now, I don’t know. But it’s not important, I’m just screwing around.

1 Like

I’m very much a Python noob, but have spent much time messing around with envinronments.

your python command references Python 3.7.3 , but pip3 references 3.8.

which python3

might help confirm. better still use an env

1 Like