To shave the servo library yak (I'm not the OP, but
this thread is about where I'm at), I'm trying to run DigiScope. I've gotten it to run and get readings, but it won't plot.
To get it to launch, I needed to
install wxPython and do the following in Terminal:
sudo easy_install matplotlibsudo easy_install PyUSBFinally I had to launch it in 32-bit mode:
env VERSIONER_PYTHON_PREFER_32_BIT=yes python ./digiscope.pyIt opens a large mostly blank window, prints a reasonably live value in the corner, logs a continuous stream of errors and doesn't draw a plot. Has anyone gotten it working on OS X? (Or SoftwareServo, for that matter?)
Stacktrace below:
Traceback (most recent call last):
File "/Users/bjh/Desktop/Digispark/Digispark - Example Programs/DigiUSB/source/digiscope.py", line 228, in on_redraw_timer
self.draw_plot()
File "/Users/bjh/Desktop/Digispark/Digispark - Example Programs/DigiUSB/source/digiscope.py", line 190, in draw_plot
self.canvas.draw()
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/backends/backend_wxagg.py", line 59, in draw
FigureCanvasAgg.draw(self)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/backends/backend_agg.py", line 439, in draw
self.figure.draw(self.renderer)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/artist.py", line 54, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/figure.py", line 999, in draw
func(*args)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/artist.py", line 54, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/axes.py", line 2086, in draw
a.draw(renderer)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/artist.py", line 54, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/axis.py", line 1053, in draw
tick.draw(renderer)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/artist.py", line 54, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/axis.py", line 240, in draw
self.label1.draw(renderer)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/artist.py", line 54, in draw_wrapper
draw(artist, renderer, *args, **kwargs)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/text.py", line 596, in draw
ismath=ismath)
File "/Library/Python/2.7/site-packages/matplotlib-1.2.0-py2.7-macosx-10.8-intel.egg/matplotlib/backends/backend_agg.py", line 179, in draw_text
font.draw_glyphs_to_bitmap(antialiased=rcParams['text.antialiased'])
RuntimeError: Could not convert glyph to bitmap
Thanks!
--bjh