ejeschke/ginga — pull request #60 by cdeil (2014-12-08 08:31:52+00:00)
Title: Python 3 error with matplotlib/example1_mpl.py

I tried running `matplotlib/example1_mpl.py` with Python 3.4 on Mac.

First I get this error on startup:
```python
$ python3.4 ./matplotlib/example1_mpl.py
No method found matching 'kp_edit_del'
No method found matching 'kp_poly_add'
No method found matching 'ms_wheel'
No method found matching 'ms_none'
No method found matching 'kp_poly_del'
No method found matching 'ms_draw'
No method found matching 'ms_edit'
No method found matching 'ms_cursor'
Error redrawing image: Dimensions of actual window are not yet determined
Traceback:
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/ImageView.py", line 608, in redraw_now
self.redraw_data(whence=whence)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/mplw/ImageViewCanvasMpl.py", line 46, in redraw_data
super(ImageViewCanvas, self).redraw_data(whence=whence)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/ImageView.py", line 634, in redraw_data
rgbobj = self.get_rgb_object(whence=whence)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/ImageView.py", line 696, in get_rgb_object
win_wd, win_ht = self.get_window_size()
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/ImageView.py", line 305, in get_window_size
raise ImageViewError("Dimensions of actual window are not yet determined")
```
Then when I try to open a file I get this error:
```bash
Traceback (most recent call last):
File "./matplotlib/example1_mpl.py", line 97, in open_file
self.load_file(fileName)
File "./matplotlib/example1_mpl.py", line 86, in load_file
image.load_file(filepath)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/AstroImage.py", line 97, in load_file
naxispath=naxispath)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/util/io_fits.py", line 122, in load_file
filepath = get_path(filespec)
File "/Users/deil/Library/Python/3.4/lib/python/site-packages/ginga-2.1.20141207082012-py3.4.egg/ginga/util/io_fits.py", line 269, in get_path
if fileSpec.startswith('file://'):
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
```