pimoroni / mote

Mote - drivers for the plug and play USB APA102 controller
https://shop.pimoroni.com/products/mote
MIT License
24 stars 14 forks source link

My OSX 10.10 was missing pySerial #6

Closed dglaude closed 8 years ago

dglaude commented 8 years ago

While trying the demo on Mac OSX 10.10, I noticed my installation was missing the serial library. I am not sure if I run the Vanilla OSX Python or the brew version of Python, but I needed to do this for things to work, else:

python test.py
Traceback (most recent call last):
  File "test.py", line 6, in <module>
    from mote import Mote
  File "/usr/local/lib/python2.7/site-packages/mote/__init__.py", line 1, in <module>
    import serial
ImportError: No module named serial
RogueM commented 8 years ago

yes, the setup.py file did not originally contain the pyserial requirement, so 0.0.1 on pypi does not roll the requirement. this will be fixed in the next version I believe.

RogueM commented 8 years ago

btw, if you are interested I have made a 'click and run' demo for OSX in my fork here: https://github.com/RogueM/mote/tree/testing/python/demo/macosx/

It won't give you full access to the API and basically runs a slightly modified version of the rainbow example. Treat it more like a proof of concept... I haven't tested it on 10.10 yet though, but it's expected to run on 10.9 and up.

dglaude commented 8 years ago

Great to be able to do a "native" App for OSX.

I made a TIX clock (modified curses version I found): https://github.com/dglaude/PyTIX/tree/adapted-for-mote

Video on Twitter: https://twitter.com/DavidGlaude/status/764214446822678528

2016-08-12 17:37 GMT+02:00 RM notifications@github.com:

btw, if you are interested I have made a 'click and run' demo for OSX in my fork here: https://github.com/RogueM/mote/tree/testing/python/demo/macosx/

It won't give you full access to the API and basically runs a slightly modified version of the rainbow example. Treat it more like a proof of concept... I haven't tested it on 10.10 yet though, but it's expected to run on 10.9 and up.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pimoroni/mote/pull/6#issuecomment-239480333, or mute the thread https://github.com/notifications/unsubscribe-auth/ASiRnGttRBFBG_pe81mtZVVc0orKy-4kks5qfJNLgaJpZM4Ji-1b .

RogueM commented 8 years ago

Great, I'll give it a go. Packaging with PyInstaller is stupidly straightforward too, so that's the sort of application where it shines. I guess the main hurdle on osx is the lack of pip out of the box, which is kind of an unecessary hurdle for complete beginners.

Gadgetoid commented 8 years ago

I've built and pushed v0.0.2, which now includes PySerial as an install requirement.