Author Topic: DigiScope issues on OS X  (Read 2782 times)

bjh

  • Newbie
  • *
  • Posts: 31
DigiScope issues on OS X
« on: February 10, 2013, 04:21:20 pm »
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 matplotlib
sudo easy_install PyUSB


Finally I had to launch it in 32-bit mode:


env VERSIONER_PYTHON_PREFER_32_BIT=yes python ./digiscope.py


It 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


bjh

  • Newbie
  • *
  • Posts: 31
Re: DigiScope issues on OS X
« Reply #1 on: February 11, 2013, 10:39:21 pm »
Hmm... it might be best to minimize external dependancies, has anyone gotten any of the Processing-based oscilloscopes going? (There are a few listed in the 'Links' section here, but a lot of them are several years old)  I have a few other 'duino-variants (including a Teensy 3.0), if I can get something going, I'd like to see about porting it to the Digispark.