BP
The link in your response took me to github "SDL_Pi_8PixelStrip".
From that page I had the option to Clone or Download. I chose Clone.
From the dropdown was "https://github.com/switchdoclabs/SDL_Pi_8PixelStrip.git"
I pasted that into terminal window with git clone in front and the clone went ok.
I was left with directory SDL_Pi_8PixelStrip under Pi.
That upper directory has three folders: DEBIAN, golang, and python.
It has a README.md file that states:
SDL_Pi_8PixelSrip <BR>
SwitchDoc Labs <BR>
May 8, 2018<BR>
Port from rp_ws281x for the 8 Pixel Strip based on SK6812RGBW LED Pixels
1) Follow instructions on
www.switchdoc.com or Below
2) Plug Pi2Grover Board on your Raspberry Pi
3) Connect Input Grove Connector on 8 Pixel Strip to D21/26 on the Pi2Grover
4) Power up Raspberry Pi
5) Try this as an inital test
cd SDL_Pi_8PixelStrip <BR>
sudo ./test -s rgbw -g 21 -d 10<BR>
Your strip should start blinking
6) Follow the installation instructions in the README.md in the python directory or on the
www.switchdoc.com tutorial
The program "test" was not found. The only place I had found this executable before
was in the git clone from the Adafruit instructions. Continuing my saga.
I went to the python directory and opened the README.md file.
It states:
## Build
As this is just a python wrapper for the library you must first follow
the build instructions in the parent directory.
When complete, you can build this python wrapper:
```
sudo apt-get install python-dev swig
python ./setup.py build
```
If you are rebuilding after fetching some updated commits, you might need to
remove the build directory first
```
rm -rf ./build
```
## Install
If you want to install the library (in a virtualenv or in the system), so that you can `import neopixel` from anywhere, you need to run:
```
python ./setup.py install
```
I still got the "zipfile.BadZipfile: File is not a zip file" error message.
Shown below are the results of the terminal window. Slightly edited
to remove multiple trys..
pi@PiDev:~ $ git clone
github.com/switchdoclabs/SDL_Pi_8PixelStrip.gitCloning into 'SDL_Pi_8PixelStrip'...
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 55 (delta 19), reused 55 (delta 19), pack-reused 0
Unpacking objects: 100% (55/55), done.
Checking connectivity... done.
pi@PiDev:~ $ cd SDL_Pi_8PixelStrip
pi@PiDev:~/SDL_Pi_8PixelStrip $ sudo ./test -s rgbw -g 21 -d 10
sudo: ./test: command not found
pi@PiDev:~/SDL_Pi_8PixelStrip $ ls
clk.h golang mailbox.c pcm.h README.md SConstruct ws2811.h
DEBIAN gpio.h mailbox.h pwm.c rpihw.c version
dma.c LICENSE main.c pwm.h rpihw.h version.py
dma.h linux.py pcm.c python SConscript ws2811.c
pi@PiDev:~/SDL_Pi_8PixelStrip $ cd python
pi@PiDev:~/SDL_Pi_8PixelStrip/python $ sudo apt-get install python-dev swig
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version.
swig is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 150 not upgraded.
pi@PiDev:~/SDL_Pi_8PixelStrip/python $ sudo python ./setup.py build
Extracting in /tmp/tmpB2fSQW
Traceback (most recent call last):
File "./setup.py", line 4, in <module>
use_setuptools()
File "/home/pi/SDL_Pi_8PixelStrip/python/ez_setup.py", line 161, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/SDL_Pi_8PixelStrip/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/SDL_Pi_8PixelStrip/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/SDL_Pi_8PixelStrip/python/ez_setup.py", line 100, in archive_context
with ContextualZipFile(filename) as archive:
File "/home/pi/SDL_Pi_8PixelStrip/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@PiDev:~/SDL_Pi_8PixelStrip/python $ rm -rf ./build
pi@PiDev:~/SDL_Pi_8PixelStrip/python $ sudo python ./setup.py build
Extracting in /tmp/tmpkqvY3S
Traceback (most recent call last):
File "./setup.py", line 4, in <module>
use_setuptools()
File "/home/pi/SDL_Pi_8PixelStrip/python/ez_setup.py", line 161, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/SDL_Pi_8PixelStrip/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/SDL_Pi_8PixelStrip/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/SDL_Pi_8PixelStrip/python/ez_setup.py", line 100, in archive_context
with ContextualZipFile(filename) as archive:
File "/home/pi/SDL_Pi_8PixelStrip/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@PiDev:~/SDL_Pi_8PixelStrip/python $
I've got to be overlooking something pretty simple. I usually can follow instructions.
Look for the most obvious simple error. I don't have a lot of experience with Debian, but I've
been working with computers since the mid 60s.
Once again help.
CharlieE