Hello all,
I've been using my POSTbox very successfully on Windows, but for convenience I'd also like to use it on my M1 Mac Studio.
I've followed the instructions here:
https://docs.google.com/document/d/1yC8 ... _TfZ8/edit#
I already had Homebrew, installed Git, cloned the repository successfully, added Pyserial but when I run
python3 show_self_test.py
I get the following:
/dev/cu.Bluetooth-Incoming-Port None n/a None None None
Traceback (most recent call last):
File "/Users/austin/acorn_postbox/tools/show_self_test.py", line 67, in <module>
main()
File "/Users/austin/acorn_postbox/tools/show_self_test.py", line 23, in main
with postbox.Postbox() as pb:
File "/Users/austin/acorn_postbox/tools/postbox.py", line 295, in __enter__
self.ser = board.Port().ser
File "/Users/austin/acorn_postbox/tools/board.py", line 62, in __init__
port = guess_port()
File "/Users/austin/acorn_postbox/tools/board.py", line 57, in guess_port
raise Exception("Could not find a connected POST Box")
Exception: Could not find a connected POST Box
Given the reference to /dev/cu.Bluetooth-Incoming-Port I'm guessing it can't find the virtual serial port associated with the device. This figures as I also can't find an active COM port in my terminal emulator software either.
Any ideas?
POSTBox Python Scripts on M1 Mac
-
- Posts: 135
- Joined: Tue May 19, 2020 10:27 pm
- Contact:
-
- Posts: 135
- Joined: Tue May 19, 2020 10:27 pm
- Contact:
Re: POSTBox Python Scripts on M1 Mac
Actually, I've "sorted" this myself...
Seemingly it's sensitive as to what USB port it's plugged into!
The one on the Mac Studio itself - no dice.
The one on my USB-C dock works perfectly.
Seemingly it's sensitive as to what USB port it's plugged into!
The one on the Mac Studio itself - no dice.
The one on my USB-C dock works perfectly.
- IanJeffray
- Posts: 6018
- Joined: Sat Jun 06, 2020 3:50 pm
- Contact:
Re: POSTBox Python Scripts on M1 Mac
If you set POSTBOX_PORT in the OS environment, that'll be used as a preference and skip port detection.
(see board.py)
(see board.py)