Estoy intentando controlar los LED WS2812b usando una frambuesa pi de acuerdo con esta guía: enlace
Hasta ahora he ejecutado las siguientes líneas en el terminal sin ningún problema:
git clone https://github.com/jgarff/rpi_ws281x
cd rpi_ws281x/
sudo scons
cd python
Sin embargo, cuando intento ejecutar el siguiente par de líneas, recibo errores:
pi@raspberrypi:~/rpi_ws281x/python $ python setup.py build
Extracting in /tmp/tmpMzL9XM
Traceback (most recent call last):
File "setup.py", line 4, in <module>
use_setuptools()
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 161, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 62, in _build_egg
with archive_context(archive_filename):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 100, in archive_context
with ContextualZipFile(filename) as archive:
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 88, in __new__
return zipfile.ZipFile(*args, **kwargs)
File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
self._RealGetContents()
File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
pi@raspberrypi:~/rpi_ws281x/python $ python setup.py install
Extracting in /tmp/tmplrNAMs
Traceback (most recent call last):
File "setup.py", line 4, in <module>
use_setuptools()
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 161, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 62, in _build_egg
with archive_context(archive_filename):
File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 100, in archive_context
with ContextualZipFile(filename) as archive:
File "/home/pi/rpi_ws281x/python/ez_setup.py", line 88, in __new__
return zipfile.ZipFile(*args, **kwargs)
File "/usr/lib/python2.7/zipfile.py", line 770, in __init__
self._RealGetContents()
File "/usr/lib/python2.7/zipfile.py", line 811, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file
¿Alguien tiene alguna idea sobre lo que debo hacer?