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