Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NeoSectional not working after latest Stretch update #1

Closed
freilichr opened this issue May 3, 2018 · 2 comments
Closed

NeoSectional not working after latest Stretch update #1

freilichr opened this issue May 3, 2018 · 2 comments

Comments

@freilichr
Copy link

freilichr commented May 3, 2018

After getting the latest update of Stretch Lite, I began the installation of jgraff's rpi_ws281x. Running sudo python setup.py install in /rpi_281x/python, there were a lot of errors. (see jgarff/rpi_ws281x#290)

Extracting in /tmp/tmpejd0zm
Traceback (most recent call last):
File "./setup.py", line 4, in
use_setuptools()
File "/home/pi/libs/rpi_ws281x/python/ez_setup.py", line 140, in use_setuptools
return _do_download(version, download_base, to_dir, download_delay)
File "/home/pi/libs/rpi_ws281x/python/ez_setup.py", line 120, in _do_download
_build_egg(egg, archive, to_dir)
File "/home/pi/libs/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/libs/rpi_ws281x/python/ez_setup.py", line 100, in archive_context
with ContextualZipFile(filename) as archive:
File "/home/pi/libs/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 813, in _RealGetContents
raise BadZipfile, "File is not a zip file"
zipfile.BadZipfile: File is not a zip file

The workaround was
sudo apt-get install python-pip
sudo pip install rpi_ws281x
python ./setup.py build

This may have helped run ... python/examples/strandtest.py but metar.py would still not run. Can you help me sort this out? Thanks

@JJSilva
Copy link
Owner

JJSilva commented May 4, 2018

I noticed the last few lines of output said zipfile.BadZipfile
Perhaps an something is wrong with that zip file.

If not whats the output of the metar.py?

@freilichr
Copy link
Author

The rpi_ws281x library is now a PIP install as far as I can tell. Not sure exactly what changed (relative noob) except scons and manual setup.py install are no longer required after using PIP. NeoSectional works fine now that ws281x library install has been sorted. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants