nxt-python icon indicating copy to clipboard operation
nxt-python copied to clipboard

Tester on mac OS wanted

Open schodet opened this issue 3 years ago • 15 comments

Hi!

I am looking for testers with some python background on mac OS system.

Please contact me if you can help.

schodet avatar Nov 17 '21 00:11 schodet

I am available for this one, just have to overcome the setup of installing and putting it to work

hope I can help

JoseSantos7 avatar Dec 15 '21 18:12 JoseSantos7

Thanks :)

schodet avatar Dec 15 '21 19:12 schodet

I'd love to help, but sadly I found this repo just before I found that my NXT brick has the dead display issue, so currently I'm unable to do much until I get a replacement for the screen connection... best of luck however!

michthom avatar Dec 22 '21 18:12 michthom

You can use NXT-Python even without a screen :)

schodet avatar Dec 27 '21 22:12 schodet

Thanks Nicolas, but I’m struggling to get the Bluetooth pairing to complete as I can’t see the NXT side of the conversation. I have ordered some conductive adhesive and hope to have my screen working with a new ribbon cable in a couple of weeks when that arrives.

michthom avatar Dec 28 '21 10:12 michthom

@schodet I have a working NXT brick on macOS. I was not able to get pybluez installed from pip, but was able to install it using latest on github. Let me know if you need help with documentation or testing

I had to install full Xcode (not just command line tools) to build pybluez

Then run: pip3 install https://github.com/pybluez/pybluez/tarball/master

rrhartjr avatar Jun 11 '22 15:06 rrhartjr

@rrhartjr Thanks for your help!

Which macOS version are you using?

Did you manage to make USB work?

About documentation, could you add a section describing how you installed pybluez?

Thank you :)

schodet avatar Jun 13 '22 06:06 schodet

Which macOS version are you using?

Works on Catalina and Big Sur

Did you manage to make USB work?

Works with no issues per documentation

About documentation, could you add a section describing how you installed pybluez?

PR opened

rrhartjr avatar Jun 18 '22 19:06 rrhartjr

@schodet I've not been frequenting github so I missed this. Anyway, I've been running python3+nxt-python 3.0.0 on macOS for over 6 months now.

Works fine with libusb + pyusb (tested with python 3.9 from MacPorts, didn't try with later versions). Got it working on Intel Macs running 10.14 (Mojave), and Intel + M1 Macs running 12.x (Monterey).

Didn't try bluetooth support, due to the fact that the pybluez package is not available on MacPorts and I've not managed to get bluetooth (lightblue package) to work with my nxos-armdebug stuff in the past. Wasn't sure if it was worth the effort to debug it.

tcwan avatar Jun 21 '22 08:06 tcwan

I may be useful to have a “tested matrix”, what do you think?

I don't know why pybluez does not make a release, they keep having bug submitted for things which are fixed on master.

@tcwan, Nice to see you again :)

schodet avatar Jun 22 '22 22:06 schodet

I may be useful to have a “tested matrix”, what do you think?

Sure, though it will probably be a bit sparse, I only have access to certain versions of macOS. Mojave was tested mainly because it's the last 32-bit compatible version of macOS, and running on rather old iMacs (~2011 vintage).

tcwan avatar Jun 22 '22 23:06 tcwan

So for the moment, it looks like this:

macOS Python USB Bluetooth
10.14 (Mojave) 3.9 (MacPorts) :heavy_check_mark: ?
10.15 (Catalina) :heavy_check_mark: :heavy_check_mark: *
11 (Big Sur) :heavy_check_mark: :heavy_check_mark: *
12 (Monterey) 3.9 (MacPorts) :heavy_check_mark: ?

*: pybluez build from master

schodet avatar Jun 26 '22 17:06 schodet

@tcwan How is the Portfile used? Is it something to include in nxt-python, in a contrib directory for example?

schodet avatar Jun 26 '22 17:06 schodet

@tcwan How is the Portfile used? Is it something to include in nxt-python, in a contrib directory for example?

It's used for MacPorts. It should be in a contrib directory.

tcwan avatar Aug 09 '22 00:08 tcwan