I have installed, uninstalled installed BiblioPixel and several of the animations I keep getting an error.
I set RPI3 to use Python3.x (currently Python3.5) as default.
I sudo pip3 install bibliopixel
Collecting bibliopixel
Using cached https://www.piwheels.hostedpi.com/simple/bibliopixel/BiblioPixel-3.3.6-py3-none-any.whl
Collecting BiblioPixelTriggers (from bibliopixel)
Using cached https://www.piwheels.hostedpi.com/simple/bibliopixeltriggers/BiblioPixelTriggers-1.0.1-py3-none-any.whl
Collecting BiblioPixelAnimations (from bibliopixel)
Requirement already satisfied: loady in /usr/local/lib/python3.5/dist-packages (from bibliopixel)
Requirement already satisfied: flask in /usr/lib/python3/dist-packages (from bibliopixel)
Requirement already satisfied: croniter in /usr/local/lib/python3.5/dist-packages (from BiblioPixelTriggers->bibliopixel)
Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.5/dist-packages (from loady->bibliopixel)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from loady->bibliopixel)
Requirement already satisfied: GitPython in /usr/local/lib/python3.5/dist-packages (from loady->bibliopixel)
Requirement already satisfied: python-dateutil in /usr/local/lib/python3.5/dist-packages (from croniter->BiblioPixelTriggers->bibliopixel)
Requirement already satisfied: gitdb2>=2.0.0 in /usr/local/lib/python3.5/dist-packages (from GitPython->loady->bibliopixel)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil->croniter->BiblioPixelTriggers->bibliopixel)
Requirement already satisfied: smmap2>=2.0.0 in /usr/local/lib/python3.5/dist-packages (from gitdb2>=2.0.0->GitPython->loady->bibliopixel)
Installing collected packages: BiblioPixelTriggers, BiblioPixelAnimations, bibliopixel
Successfully installed BiblioPixelAnimations-3.20171123.54201 BiblioPixelTriggers-1.0.1 bibliopixel-3.3.6
I run PartyMode.py and keep getting one of two errors
- File “/usr/local/lib/python3.5/dist-packages/BiblioPixelAnimations/strip/PartyMode.py”, line 17, in step
self._led.fill(self._colors[self._step / 2], self._start, self._end)
TypeError: list indices must be integers or slices, not float
It appears line 17 division (version of the file is an earlier version) as the division should be // 2, which appears when I look at the file on Github.
Then if I edit the file to match on Github, I get this error
- File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/driver_base.py”, line 121, in _render
c = [int(level * x) for x in self._colors[i + self._pos]]
File “/usr/local/lib/python3.5/dist-packages/bibliopixel/drivers/driver_base.py”, line 121, in
c = [int(level * x) for x in self._colors[i + self._pos]]
TypeError: can’t multiply sequence by non-int of type ‘float’
These are all the files in this directory (which is less than on Github)
/usr/local/lib/python3.5/dist-packages/BiblioPixelAnimations/strip $ ls
Alternates.py ColorChase.py ColorPattern.py FireFlies.py hexclock.py LarsonScanners.py PartyMode.py pycache RGBClock.py Wave.py
BinaryEpochClock.py ColorFade.py ColorWipe.py HalvesRainbow.py init.py LinearRainbow.py PixelPingPong.py Rainbows.py Searchlights.py WhiteTwinkle.py
It feels like something is not installed correctly. I have successfully run Alternates, ColorChase, LarsonScanners, Rainbows