On MacOS 12.3.1, I installed both the CP210X driver and the CH34X driver. I installed ONLY the CP210X first, but esphome couldn’t flash the board. With JUST the CP210X driver, all I could see for a port was /dev/cu.usbmodem53190123241. I had to also install the CH34X driver, THEN I could flash the board from my Mac via USB using the new port that showed up /dev/cu.wchusbserial53190123241
However, now when I just issue “meshtastic” at the command line, I get a series of errors:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/bin/meshtastic”, line 5, in
from meshtastic.main import main
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/init.py”, line 80, in
from meshtastic.node import Node
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/node.py”, line 7, in
from meshtastic import portnums_pb2, apponly_pb2, admin_pb2, channel_pb2
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/portnums_pb2.py”, line 20, in
_PORTNUM = DESCRIPTOR.enum_types_by_name[‘PortNum’]
AttributeError: ‘NoneType’ object has no attribute ‘enum_types_by_name’
If I issue “meshtastic --info” it gives more errors:
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/bin/meshtastic”, line 5, in
from meshtastic.main import main
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/init.py”, line 80, in
from meshtastic.node import Node
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/node.py”, line 7, in
from meshtastic import portnums_pb2, apponly_pb2, admin_pb2, channel_pb2
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/portnums_pb2.py”, line 20, in
_PORTNUM = DESCRIPTOR.enum_types_by_name[‘PortNum’]
AttributeError: ‘NoneType’ object has no attribute ‘enum_types_by_name’
tim@iMac27 ~ % meshtastic --info
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/bin/meshtastic”, line 5, in
from meshtastic.main import main
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/init.py”, line 80, in
from meshtastic.node import Node
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/node.py”, line 7, in
from meshtastic import portnums_pb2, apponly_pb2, admin_pb2, channel_pb2
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/portnums_pb2.py”, line 20, in
_PORTNUM = DESCRIPTOR.enum_types_by_name[‘PortNum’]
AttributeError: ‘NoneType’ object has no attribute ‘enum_types_by_name’
Using “meshtastic --info” worked fine when ONLY the CP210X driver was installed. Do I need to remove the CP210X driver now, since the CH340 driver is needed for flashing the board?