no module bibliopixel.led

Hey there,
I installed Bibliopixel wiht pip3 and when I’m running python3 i can’t import bibliopixel.led as there is no module named like this.
Importiing bibliopixel.animation however works fine.
So whats going on here? How can I run a simple program for my LED Strip with python 3?
#!/usr/bin/python3

Load driver for LPD8806 Strip

from bibliopixel.drivers.SPI.LPD8806 import *

set length of Strip and initialize

from bibliopixel.led import *driver = LPD8806(12)
led = Strip(driver)

load channel test animation

from bibliopixel.animation import StripChannelTest
anim = StripChannelTest(led)

try:
# run the animation
anim.run()
except KeyboardInterrupt:
# Ctrl+C will exit the animation and turn the LEDs offs
led.all_off()
led.update()

``

As I said, all other imports work fine and I’ve tested them. What am I missing here or doing wrong? It’s only
from bibliopixel.led import *

``

which is not working…

Thanks for your help.

Thanks for pointing out the docs here. As noted in your GitHub Issue (https://github.com/ManiacalLabs/BiblioPixel/issues/655), it’s been fixed now.

···

On Sat, Mar 10, 2018 at 9:30 AM, Cedric V. citiroller@gmail.com wrote:

Hey there,
I installed Bibliopixel wiht pip3 and when I’m running python3 i can’t import bibliopixel.led as there is no module named like this.
Importiing bibliopixel.animation however works fine.
So whats going on here? How can I run a simple program for my LED Strip with python 3?
#!/usr/bin/python3

Load driver for LPD8806 Strip

from bibliopixel.drivers.SPI.LPD8806 import *

set length of Strip and initialize

from bibliopixel.led import *driver = LPD8806(12)
led = Strip(driver)

load channel test animation

from bibliopixel.animation import StripChannelTest
anim = StripChannelTest(led)

try:
# run the animation
anim.run()
except KeyboardInterrupt:
# Ctrl+C will exit the animation and turn the LEDs offs
led.all_off()
led.update()

``

As I said, all other imports work fine and I’ve tested them. What am I missing here or doing wrong? It’s only
from bibliopixel.led import *

``

which is not working…

Thanks for your help.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/9b05237f-33c3-4347-ab95-c6e1b4cab36c%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thanks for the quick response. These outdated docs really aren’t a good astarting point…
I’ll try my best to get into it anyways. Thanks for your help :slight_smile:

I sincerely apologise for that. I’m going through now to see if I can find anything else we missed. And we are currently in the process of a complete documentation overhaul to go out with the next release.
If you have any other trouble please don’t hesitate to contact me immediately and I’ll get it sorted.

···

On Mar 10, 2018 9:53 AM, “Cedric V.” citiroller@gmail.com wrote:

You guys seriously need to update your documentation. I now found out after hours of searching that this method is only available in the python2 version and I need to use layout instead. A nice documentation would be very much aprreciated…

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/d84035b5-793a-48aa-b43d-7afb8c8f78ca%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

I’m really looking forward to it. After one day of figuring out how this works and finding out about the user made animations, I had some fun with it :slight_smile:
Looking forward to an updated documentation, as in every example I found on the web it was led instead of layout.
But now it works and these user made animations are looking great :wink:

···

Am Sonntag, 11. März 2018 14:36:26 UTC+1 schrieb Tom Swirly:

Ach, I’m really the one responsible for this. :-/

Basically, I came on like gangbusters and rearchitected a large amount of the system in order to be able to achieve a large number of new features (projects, numpy arrays, general controls, etc. etc.)

However, unlike all other programmers (/sarcasm), I find writing code more fun than documenting it.

In my defense, we are also transitioning one way of doing things (“write a Python program to control lights”) to another (“put together parts to make a Project”), while maintaining very good backwards compatibility. It’s dreary to write documentation for something that will be old news in a month or two.

But we have good news for you.

Right now, we’re charging towards a 4.0 release whose top goal is complete documentation of all the new material and the whole workflow, as well as enabling a bunch of features that today need to be turned on by the user, like “fast numpy math”, and this is only a few weeks away.

So stay tuned!

On Sat, Mar 10, 2018 at 3:57 PM, Adam Haile adamm...@gmail.com wrote:

I sincerely apologise for that. I’m going through now to see if I can find anything else we missed. And we are currently in the process of a complete documentation overhaul to go out with the next release.
If you have any other trouble please don’t hesitate to contact me immediately and I’ll get it sorted.

On Mar 10, 2018 9:53 AM, “Cedric V.” citir...@gmail.com wrote:

You guys seriously need to update your documentation. I now found out after hours of searching that this method is only available in the python2 version and I need to use layout instead. A nice documentation would be very much aprreciated…

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/d84035b5-793a-48aa-b43d-7afb8c8f78ca%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/CAG8g-TYL_Da_0tyTfW9GeTk1d4fKCwc6i5D3MSmWA1iasCAzXA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com