Help with ValueError:

I am new to bibliopixel & Raspberry Pi
Using:

Raspberry Pi 3

Python 3.4.2

Installed by:

sudo pip3 install BiblioPixel

Trying to run the following test:

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.APA102)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bliopixel.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()

Here is the output:

Traceback (most recent call last):

File “/home/pi/tomstest1.py”, line 8, in

driver = Serial(num = 10, ledtype = LEDTYPE.APA102)

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

self.devices = Devices(hardwareID, baudrate)

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

self.serial = import_symbol(‘serial’)

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

validate_typename(typename)

File “/usr/local/lib/python3.4/dist-packages/bibliopixel/project/importer.py”, line 47, in validate_typename

root_module, version, min_version, install_name))

ValueError:

You have version serial of module ‘2.6’ but you need version 2.7.

Please upgrade at the command line with:

$ pip install pyserial --upgrade

You need to install latest pyserial, please see the note about installing it at the top of this doc page: https://github.com/ManiacalLabs/BiblioPixel/wiki/Serial

···

On Sep 22, 2017 10:45 AM, tomsuhler@database-concepts.com wrote:

I am new to bibliopixel & Raspberry Pi
Using:

Raspberry Pi 3

Python 3.4.2

Installed by:

sudo pip3 install BiblioPixel

Trying to run the following test:

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.APA102)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bliopixel.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()

Here is the output:

Traceback (most recent call last):

File “/home/pi/tomstest1.py”, line 8, in

driver = Serial(num = 10, ledtype = LEDTYPE.APA102)

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

self.devices = Devices(hardwareID, baudrate)

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

self.serial = import_symbol(‘serial’)

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

validate_typename(typename)

File “/usr/local/lib/python3.4/dist-packages/bibliopixel/project/importer.py”, line 47, in validate_typename

root_module, version, min_version, install_name))

ValueError:

You have version serial of module ‘2.6’ but you need version 2.7.

Please upgrade at the command line with:

$ pip install pyserial --upgrade

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/23568a3c-6422-4451-aba8-256bddec571b%40googlegroups.com.

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

This did not work: sudo pip install pyserial --upgrade --ignore-installed

This did: sudo pip3 install pyserial --upgrade --ignore-installed

Thanks

···

On Friday, September 22, 2017 at 3:04:20 PM UTC-5, Adam Haile wrote:

You need to install latest pyserial, please see the note about installing it at the top of this doc page: https://github.com/ManiacalLabs/BiblioPixel/wiki/Serial

On Sep 22, 2017 10:45 AM, toms...@database-concepts.com wrote:

I am new to bibliopixel & Raspberry Pi
Using:

Raspberry Pi 3

Python 3.4.2

Installed by:

sudo pip3 install BiblioPixel

Trying to run the following test:

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.APA102)

load the LEDStrip class

from bibliopixel.layout import *

led = Strip(driver)

load channel test animation

from bliopixel.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()

Here is the output:

Traceback (most recent call last):

File “/home/pi/tomstest1.py”, line 8, in

driver = Serial(num = 10, ledtype = LEDTYPE.APA102)

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

self.devices = Devices(hardwareID, baudrate)

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

self.serial = import_symbol(‘serial’)

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

validate_typename(typename)

File “/usr/local/lib/python3.4/dist-packages/bibliopixel/project/importer.py”, line 47, in validate_typename

root_module, version, min_version, install_name))

ValueError:

You have version serial of module ‘2.6’ but you need version 2.7.

Please upgrade at the command line with:

$ pip install pyserial --upgrade

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/23568a3c-6422-4451-aba8-256bddec571b%40googlegroups.com.

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