Serial Connection Error after 1.3 update

My Tbeams were working properly with no issues on all FM 1.2 versions. After updating my Tbeam to FM 1.3.46, however, I was unable to sent python commands to the board. I thought it may be an issue with the board, but after updating another board to 1.3, it was reacting the same way. It seems to be an issue with multiple serial ports, though im not sure how to resolve that. This is the error displayed when I run the command “meshtastic --sendping”:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/serial/serialposix.py”, line 385, in _reconfigure_port
fcntl.flock(self.fd, fcntl.LOCK_EX | fcntl.LOCK_NB)
BlockingIOError: [Errno 35] Resource temporarily unavailable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/bin/meshtastic”, line 8, in
sys.exit(main())
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/main.py”, line 933, in main
common()
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/main.py”, line 709, in common
client = meshtastic.serial_interface.SerialInterface(args.port, debugOut=logfile, noProto=args.noproto)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/serial_interface.py”, line 53, in init
self.stream = serial.Serial(self.devPath, 921600, exclusive=True, timeout=0.5, write_timeout=0)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/serial/serialutil.py”, line 244, in init
self.open()
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/serial/serialposix.py”, line 332, in open
self._reconfigure_port(force_update=True)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/serial/serialposix.py”, line 387, in _reconfigure_port
raise SerialException(msg.errno, “Could not exclusively lock port {}: {}”.format(self._port, msg))
serial.serialutil.SerialException: [Errno 35] Could not exclusively lock port /dev/cu.wchusbserial54350157041: [Errno 35] Resource temporarily unavailable

I recieved this log when trying to run the debug command:

DEBUG file:main.py common line:693 Not logging serial output

DEBUG file:serial_interface.py init line:31 ports:[‘/dev/cu.wchusbserial54350157041’]

DEBUG file:serial_interface.py init line:41 Connecting to /dev/cu.wchusbserial54350157041

DEBUG file:stream_interface.py __reader line:129 in __reader()

DEBUG file:stream_interface.py __reader line:134 reading character

DEBUG file:stream_interface.py _sendToRadioImpl line:109 Sending: want_config_id: 2857138850

DEBUG file:stream_interface.py _sendToRadioImpl line:114 sending header:b’\x94\xc3\x00\x07’ b:b’\xa0\x06\xa2\xf5\xb1\xd2\n’
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.10/bin/meshtastic”, line 8, in
sys.exit(main())
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/main.py”, line 933, in main
common()
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/main.py”, line 709, in common
client = meshtastic.serial_interface.SerialInterface(args.port, debugOut=logfile, noProto=args.noproto)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/serial_interface.py”, line 57, in init
StreamInterface.init(self, debugOut=debugOut, noProto=noProto, connectNow=connectNow)
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/stream_interface.py”, line 50, in init
self.connect()
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/stream_interface.py”, line 74, in connect
self._waitConnected()
File “/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/meshtastic/mesh_interface.py”, line 402, in _waitConnected
raise Exception(“Timed out waiting for connection completion”)
Exception: Timed out waiting for connection completion

After running the command “meshtastic --noproto”, I received the error:

WARNING file:mesh_interface.py _sendToRadio line:467 Not sending packet because protocol use is disabled by noProto

Connected to radio

WARNING file:mesh_interface.py _sendPacket line:357 Not sending packet because protocol use is disabled by noProto

Thank you,
Any help would be greatly appreciated!

Found an older message from @Garth Saying to use the command pip install --upgrade meshtastic --pre in order to get the pre-release CLI. After doing this I was able to connect to the node! Thanks Garth, you know your stuff.

Can you explain this in detail? I’m a newbie, having an issue opening the serial port

Were you able to successfully test serial connectivity to the device?
You’re going to need a USB cable to plug into your machine, one capable of data. If you’re using a Microsoft Windows computer, it’s probably best that you use the Web flasher utility. But if you’re set on using the commandline interface, it’s easiest to use from a Linux computer. You’ll probably have the easiest time using Ubuntu, but other distros should work. The initial setup documentation is pretty good, but it assumes you already know how to install packages and setup a Python virtual environment.
If you’re using Windows, try using the tutorial to get connected.