sbonaime / seedlink_plotter

Seedlink_plotter A python script to plot real time seismic data from a seedlink server
GNU Lesser General Public License v3.0
36 stars 18 forks source link

Tcl-Tk and Yosemite on Macos #14

Closed sbonaime closed 9 years ago

sbonaime commented 9 years ago

Hi, I just upgraded to Yosemite with latest obspy dev version installed using homebrew.

With this simple code

seedlink-plotter --seedlink_server "rtserver.ipgp.fr:18000"  -s "G_RER:BHZ" -b 3600

I have the following error:

objc[87267]: Class TKApplication is implemented in both /usr/local/opt/tcl-tk/lib/libtk8.6.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[87267]: Class TKMenu is implemented in both /usr/local/opt/tcl-tk/lib/libtk8.6.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[87267]: Class TKContentView is implemented in both /usr/local/opt/tcl-tk/lib/libtk8.6.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
objc[87267]: Class TKWindow is implemented in both /usr/local/opt/tcl-tk/lib/libtk8.6.dylib and /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk. One of the two will be used. Which one is undefined.
Traceback (most recent call last):
  File "/usr/local/bin/seedlink-plotter", line 9, in <module>
    load_entry_point('seedlink-plotter==0.1.0', 'console_scripts', 'seedlink-plotter')()
  File "/usr/local/lib/python2.7/site-packages/seedlink_plotter/seedlink_plotter.py", line 476, in main
    trace_ids=ids)
  File "/usr/local/lib/python2.7/site-packages/seedlink_plotter/seedlink_plotter.py", line 59, in __init__
    canvas.show()
  File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py", line 350, in draw
    tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
  File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/tkagg.py", line 24, in blit
    tk.call("PyAggImagePhoto", photoimage, id(aggimage), colormode, id(bbox_array))
_tkinter.TclError

I am sure it is not linked with seedlink-plotter, but I would like to know what is the best way to solve this conflicting library problem. With the following code I have the same error

import Tkinter
from PIL import ImageTk
Tkinter.Tk()
ImageTk.PhotoImage(file='test_image.jpg')
sbonaime commented 9 years ago

solve the problem by uninstalling pillow and re installing it !

brew remove Homebrew/python/pillow
brew install Homebrew/python/pillow