trouble getting simple strip to work

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:

···

al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

He has pyserial (otherwise the list ports command wouldn’t work), but pretty sure it’s old.
If you are running without a virtual environment try this:
sudo pip3 install pyserial --upgrade --ignore-installed

If you are running a python virtual env, enter it and try:
pip install pyserial --upgrade --ignore-installed

Then run:
pip3 freeze (if no virtual env)
And send us the output.

···

On Sun, Oct 15, 2017 at 2:55 PM, Tom Swirly tom@swirly.com wrote:

Thanks for a very clear bug report.

That’s an exceptionally uneducational error message, and I’d yell at the guy who did it if it weren’t me. :smiley: (To be fair, there is code there for better errors, which isn’t being executed - I’ll fix that once we find out the issue here.)

My first guess might be that you need install the serial library - if you haven’t done it yet or you don’t remember, try going to the command line and typing:

pip install pyserial

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/CAOuQWfVrk0jUG5Vri5-zQUKhSnj-VR6B0JDt0TVi6rEGoyfW%3Dg%40mail.gmail.com.

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

Let us know if that does work - in which case, I’ll try to reproduce it here and fix the error message - or if it doesn’t work, in which case I’ll try to repro it here or Adam can run it on a Linux box…

Sorry for the hassles!

On Sun, Oct 15, 2017 at 8:49 PM, Al Hopper al@logical-approach.com wrote:

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:


al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

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/17311a9d-3b27-4306-b7d3-0e391e6397e3%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

Yes - pyserial already installed and updated per the docs using the same command you listed below.

I just ran it again:

al@raspsyshc:~$ sudo pip3 install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4

Just ran the test code with the same result.

Here’s the output data you requested.

Thanks for the help!!!

al@raspsyshc:~$ pip3 freeze

beautifulsoup4==4.6.0

BiblioPixel==3.3.3

BiblioPixelAnimations==3.20170913.13846

BiblioPixelTriggers==1.0.1

certifi==2017.7.27.1

chardet==3.0.4

click==6.7

croniter==0.3.19

Flask==0.12.2

gitdb2==2.0.3

GitPython==2.1.7

idna==2.6

itsdangerous==0.24

Jinja2==2.9.6

loady==1.7.2

MarkupSafe==1.0

olefile==0.44

Pillow==4.3.0

PixelWeb==1.1.5

pyserial==3.4

python-apt==1.1.0b5

python-dateutil==2.6.1

requests==2.18.4

six==1.11.0

smmap2==2.0.3

spidev==3.2

urllib3==1.22

Werkzeug==0.12.2

al@rasp

···

On Sunday, October 15, 2017 at 2:26:10 PM UTC-5, Adam Haile wrote:

He has pyserial (otherwise the list ports command wouldn’t work), but pretty sure it’s old.
If you are running without a virtual environment try this:
sudo pip3 install pyserial --upgrade --ignore-installed

If you are running a python virtual env, enter it and try:
pip install pyserial --upgrade --ignore-installed

Then run:
pip3 freeze (if no virtual env)
And send us the output.

On Sun, Oct 15, 2017 at 2:55 PM, Tom Swirly t...@swirly.com wrote:

Thanks for a very clear bug report.

That’s an exceptionally uneducational error message, and I’d yell at the guy who did it if it weren’t me. :smiley: (To be fair, there is code there for better errors, which isn’t being executed - I’ll fix that once we find out the issue here.)

My first guess might be that you need install the serial library - if you haven’t done it yet or you don’t remember, try going to the command line and typing:

pip install pyserial

Let us know if that does work - in which case, I’ll try to reproduce it here and fix the error message - or if it doesn’t work, in which case I’ll try to repro it here or Adam can run it on a Linux box…

Sorry for the hassles!

On Sun, Oct 15, 2017 at 8:49 PM, Al Hopper a...@logical-approach.com wrote:

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:


al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

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/17311a9d-3b27-4306-b7d3-0e391e6397e3%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfVrk0jUG5Vri5-zQUKhSnj-VR6B0JDt0TVi6rEGoyfW%3Dg%40mail.gmail.com.

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

Sorry… confirmed. 1.7.3 fixes it
Thanks :slight_smile:

···

On Sun, Oct 15, 2017 at 6:37 PM, Tom Swirly tom@swirly.com wrote:

Still awaiting a third-party validation!

You could try it yourself by just typing

pip install --upgrade BiblioPixel

and see if this fixes the problem for you! :slight_smile:

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/CAOuQWfWxfVyEhzdk6oSGXJcPhFxJcN2CB9Ue5kwZ8khkGiLoRw%40mail.gmail.com.

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

On Sun, Oct 15, 2017 at 11:57 PM, Tom Swirly tom@swirly.com wrote:

I just pushed a fix and we’re testing it. Should be a few more minutes.


/t

https://tom.ritchford.com

https://tom.swirly.com

On Sun, Oct 15, 2017 at 11:50 PM, Al Hopper al@logical-approach.com wrote:

Yes - pyserial already installed and updated per the docs using the same command you listed below.

I just ran it again:

al@raspsyshc:~$ sudo pip3 install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4

Just ran the test code with the same result.

Here’s the output data you requested.

Thanks for the help!!!

al@raspsyshc:~$ pip3 freeze

beautifulsoup4==4.6.0

BiblioPixel==3.3.3

BiblioPixelAnimations==3.20170913.13846

BiblioPixelTriggers==1.0.1

certifi==2017.7.27.1

chardet==3.0.4

click==6.7

croniter==0.3.19

Flask==0.12.2

gitdb2==2.0.3

GitPython==2.1.7

idna==2.6

itsdangerous==0.24

Jinja2==2.9.6

loady==1.7.2

MarkupSafe==1.0

olefile==0.44

Pillow==4.3.0

PixelWeb==1.1.5

pyserial==3.4

python-apt==1.1.0b5

python-dateutil==2.6.1

requests==2.18.4

six==1.11.0

smmap2==2.0.3

spidev==3.2

urllib3==1.22

Werkzeug==0.12.2

al@rasp

On Sunday, October 15, 2017 at 2:26:10 PM UTC-5, Adam Haile wrote:

He has pyserial (otherwise the list ports command wouldn’t work), but pretty sure it’s old.
If you are running without a virtual environment try this:
sudo pip3 install pyserial --upgrade --ignore-installed

If you are running a python virtual env, enter it and try:
pip install pyserial --upgrade --ignore-installed

Then run:
pip3 freeze (if no virtual env)
And send us the output.

On Sun, Oct 15, 2017 at 2:55 PM, Tom Swirly t...@swirly.com wrote:

Thanks for a very clear bug report.

That’s an exceptionally uneducational error message, and I’d yell at the guy who did it if it weren’t me. :smiley: (To be fair, there is code there for better errors, which isn’t being executed - I’ll fix that once we find out the issue here.)

My first guess might be that you need install the serial library - if you haven’t done it yet or you don’t remember, try going to the command line and typing:

pip install pyserial

Let us know if that does work - in which case, I’ll try to reproduce it here and fix the error message - or if it doesn’t work, in which case I’ll try to repro it here or Adam can run it on a Linux box…

Sorry for the hassles!

On Sun, Oct 15, 2017 at 8:49 PM, Al Hopper a...@logical-approach.com wrote:

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:


al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

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/17311a9d-3b27-4306-b7d3-0e391e6397e3%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfVrk0jUG5Vri5-zQUKhSnj-VR6B0JDt0TVi6rEGoyfW%3Dg%40mail.gmail.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-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/e65e35f5-707a-4739-aa48-2a526d5e4224%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

Success!!
Thanks so much.

You guys rock!!

With service like this I could easily get spoiled… :slight_smile:

Regards,

···

On Sunday, October 15, 2017 at 5:40:05 PM UTC-5, Adam Haile wrote:

Sorry… confirmed. 1.7.3 fixes it
Thanks :slight_smile:

On Sun, Oct 15, 2017 at 6:37 PM, Tom Swirly t...@swirly.com wrote:

Still awaiting a third-party validation!

You could try it yourself by just typing

pip install --upgrade BiblioPixel

and see if this fixes the problem for you! :slight_smile:

On Sun, Oct 15, 2017 at 11:57 PM, Tom Swirly t...@swirly.com wrote:

I just pushed a fix and we’re testing it. Should be a few more minutes.

On Sun, Oct 15, 2017 at 11:50 PM, Al Hopper a...@logical-approach.com wrote:

Yes - pyserial already installed and updated per the docs using the same command you listed below.

I just ran it again:

al@raspsyshc:~$ sudo pip3 install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4

Just ran the test code with the same result.

Here’s the output data you requested.

Thanks for the help!!!

al@raspsyshc:~$ pip3 freeze

beautifulsoup4==4.6.0

BiblioPixel==3.3.3

BiblioPixelAnimations==3.20170913.13846

BiblioPixelTriggers==1.0.1

certifi==2017.7.27.1

chardet==3.0.4

click==6.7

croniter==0.3.19

Flask==0.12.2

gitdb2==2.0.3

GitPython==2.1.7

idna==2.6

itsdangerous==0.24

Jinja2==2.9.6

loady==1.7.2

MarkupSafe==1.0

olefile==0.44

Pillow==4.3.0

PixelWeb==1.1.5

pyserial==3.4

python-apt==1.1.0b5

python-dateutil==2.6.1

requests==2.18.4

six==1.11.0

smmap2==2.0.3

spidev==3.2

urllib3==1.22

Werkzeug==0.12.2

al@rasp

On Sunday, October 15, 2017 at 2:26:10 PM UTC-5, Adam Haile wrote:

He has pyserial (otherwise the list ports command wouldn’t work), but pretty sure it’s old.
If you are running without a virtual environment try this:
sudo pip3 install pyserial --upgrade --ignore-installed

If you are running a python virtual env, enter it and try:
pip install pyserial --upgrade --ignore-installed

Then run:
pip3 freeze (if no virtual env)
And send us the output.

On Sun, Oct 15, 2017 at 2:55 PM, Tom Swirly t...@swirly.com wrote:

Thanks for a very clear bug report.

That’s an exceptionally uneducational error message, and I’d yell at the guy who did it if it weren’t me. :smiley: (To be fair, there is code there for better errors, which isn’t being executed - I’ll fix that once we find out the issue here.)

My first guess might be that you need install the serial library - if you haven’t done it yet or you don’t remember, try going to the command line and typing:

pip install pyserial

Let us know if that does work - in which case, I’ll try to reproduce it here and fix the error message - or if it doesn’t work, in which case I’ll try to repro it here or Adam can run it on a Linux box…

Sorry for the hassles!

On Sun, Oct 15, 2017 at 8:49 PM, Al Hopper a...@logical-approach.com wrote:

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:


al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

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/17311a9d-3b27-4306-b7d3-0e391e6397e3%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfVrk0jUG5Vri5-zQUKhSnj-VR6B0JDt0TVi6rEGoyfW%3Dg%40mail.gmail.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/e65e35f5-707a-4739-aa48-2a526d5e4224%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfWxfVyEhzdk6oSGXJcPhFxJcN2CB9Ue5kwZ8khkGiLoRw%40mail.gmail.com.

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

Happy to help :slight_smile:

···

On Sun, Oct 15, 2017 at 8:31 PM, Al Hopper al@logical-approach.com wrote:

Success!!
Thanks so much.

You guys rock!!

With service like this I could easily get spoiled… :slight_smile:

Regards,

On Sunday, October 15, 2017 at 5:40:05 PM UTC-5, Adam Haile wrote:

Sorry… confirmed. 1.7.3 fixes it
Thanks :slight_smile:

On Sun, Oct 15, 2017 at 6:37 PM, Tom Swirly t...@swirly.com wrote:

Still awaiting a third-party validation!

You could try it yourself by just typing

pip install --upgrade BiblioPixel

and see if this fixes the problem for you! :slight_smile:

On Sun, Oct 15, 2017 at 11:57 PM, Tom Swirly t...@swirly.com wrote:

I just pushed a fix and we’re testing it. Should be a few more minutes.

On Sun, Oct 15, 2017 at 11:50 PM, Al Hopper a...@logical-approach.com wrote:

Yes - pyserial already installed and updated per the docs using the same command you listed below.

I just ran it again:

al@raspsyshc:~$ sudo pip3 install pyserial --upgrade --ignore-installed

Collecting pyserial

Using cached pyserial-3.4-py2.py3-none-any.whl

Installing collected packages: pyserial

Successfully installed pyserial-3.4

Just ran the test code with the same result.

Here’s the output data you requested.

Thanks for the help!!!

al@raspsyshc:~$ pip3 freeze

beautifulsoup4==4.6.0

BiblioPixel==3.3.3

BiblioPixelAnimations==3.20170913.13846

BiblioPixelTriggers==1.0.1

certifi==2017.7.27.1

chardet==3.0.4

click==6.7

croniter==0.3.19

Flask==0.12.2

gitdb2==2.0.3

GitPython==2.1.7

idna==2.6

itsdangerous==0.24

Jinja2==2.9.6

loady==1.7.2

MarkupSafe==1.0

olefile==0.44

Pillow==4.3.0

PixelWeb==1.1.5

pyserial==3.4

python-apt==1.1.0b5

python-dateutil==2.6.1

requests==2.18.4

six==1.11.0

smmap2==2.0.3

spidev==3.2

urllib3==1.22

Werkzeug==0.12.2

al@rasp

On Sunday, October 15, 2017 at 2:26:10 PM UTC-5, Adam Haile wrote:

He has pyserial (otherwise the list ports command wouldn’t work), but pretty sure it’s old.
If you are running without a virtual environment try this:
sudo pip3 install pyserial --upgrade --ignore-installed

If you are running a python virtual env, enter it and try:
pip install pyserial --upgrade --ignore-installed

Then run:
pip3 freeze (if no virtual env)
And send us the output.

On Sun, Oct 15, 2017 at 2:55 PM, Tom Swirly t...@swirly.com wrote:

Thanks for a very clear bug report.

That’s an exceptionally uneducational error message, and I’d yell at the guy who did it if it weren’t me. :smiley: (To be fair, there is code there for better errors, which isn’t being executed - I’ll fix that once we find out the issue here.)

My first guess might be that you need install the serial library - if you haven’t done it yet or you don’t remember, try going to the command line and typing:

pip install pyserial

Let us know if that does work - in which case, I’ll try to reproduce it here and fix the error message - or if it doesn’t work, in which case I’ll try to repro it here or Adam can run it on a Linux box…

Sorry for the hassles!

On Sun, Oct 15, 2017 at 8:49 PM, Al Hopper a...@logical-approach.com wrote:

Hardware platform: Raspberry Pi 3 running latest Rasperian Linux
uname -a

Linux raspsyshc 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux

Running python3 (3.5.3)

Installed latest Allpixel Mini and latest BiblioPixel

Strip is NeoPixel 5 meters

Latest pyserial installed

python3 -m serial.tools.list_ports

/dev/ttyACM0

/dev/ttyAMA0

2 ports found

5V 6A power supply (Emerson DIN) with 2.1mm plug to Allpixel mini

and a hacked mini-USB to RPI v3

Using known-good USB->mini cable from RPi to Allpixel3 (from AllPixel)

Tests:

al@raspsyshc:~$ bibliopixel devices

Traceback (most recent call last):

File “/usr/local/bin/bibliopixel”, line 12, in

from bibliopixel.main import main

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/main/main.py”, line 12, in

MODULES = {c: import_symbol(‘bibliopixel.main.’ + c) for c in COMMANDS}

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in bibliopixel.main.alias

Simple demo code:

#!/usr/bin/env python3

import bibliopixel

causes frame timing information to be output

bibliopixel.log.setLogLevel(bibliopixel.log.DEBUG)

Load driver for the AllPixel

from bibliopixel.drivers.serial import *

set number of pixels & LED type here

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

#driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B)

load the LEDStrip class

from bibliopixel.layout import *

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()

Results:


al@raspsyshc:~$ sudo ./allpixel0.py

Traceback (most recent call last):

File “./allpixel0.py”, line 12, in

driver = Serial(num = 10, ledtype = LEDTYPE.WS2812B, device_id=1, dev="/dev/ttyAMA0")

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/driver.py”, line 28, in init

self.devices = Devices(hardwareID, baudrate)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/serial/devices.py”, line 15, in init

self.list_ports = import_symbol(‘serial.tools.list_ports’)

File “/usr/local/lib/python3.5/dist-packages/bibliopixel/project/importer.py”, line 52, in import_symbol

result = loady.code.load(typename)

File “/usr/local/lib/python3.5/dist-packages/loady/code.py”, line 69, in load

return importer.import_code(name, base_path)

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 70, in import_code

return candidates[guess_name(names, module_name, typename)]

File “/usr/local/lib/python3.5/dist-packages/loady/importer.py”, line 58, in guess_name

raise ValueError(‘No member specified in %s’ % fullname)

ValueError: No member specified in serial.tools.list_ports

I tried changed the “dev” in the call to Serial() - with various parameters.

Put 5 or 6 hours into reading the docs.

I can’t get past getting this simple code to run.

Please Help!!!

Al

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/17311a9d-3b27-4306-b7d3-0e391e6397e3%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfVrk0jUG5Vri5-zQUKhSnj-VR6B0JDt0TVi6rEGoyfW%3Dg%40mail.gmail.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/e65e35f5-707a-4739-aa48-2a526d5e4224%40googlegroups.com.

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


/t

https://tom.ritchford.com

https://tom.swirly.com


/t

https://tom.ritchford.com

https://tom.swirly.com

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/CAOuQWfWxfVyEhzdk6oSGXJcPhFxJcN2CB9Ue5kwZ8khkGiLoRw%40mail.gmail.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-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/c0fb154f-197b-441f-8a3f-307e6ab802e4%40googlegroups.com.

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