[julia-users] Re: Suddenly PyPlot giving me grief

2016-07-13 Thread Ed Scheinerman
And when I do a simple "using PyPlot" I get these errors. Someone, please 
help :-(


julia> using PyPlot

objc[83239]: Class TKApplication is implemented in both 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
will be used. Which one is undefined.

objc[83239]: Class TKMenu is implemented in both 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
will be used. Which one is undefined.

objc[83239]: Class TKContentView is implemented in both 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
will be used. Which one is undefined.

objc[83239]: Class TKWindow is implemented in both 
/System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
/Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
will be used. Which one is undefined.


julia> plot([1,2],[1,3])

Exception in Tkinter callback

Traceback (most recent call last):

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/lib-tk/Tkinter.py", 
line 1537, in __call__

return self.func(*args)

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
 
line 283, in resize

self.show()

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
 
line 355, in draw

tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/tkagg.py",
 
line 30, in blit

id(data), colormode, id(bbox_array))

TclError

julia(83239,0x7fff7ce8a000) malloc: *** error for object 0x7fe0916936d0: 
pointer being freed was not allocated

*** set a breakpoint in malloc_error_break to debug


signal (6): Abort trap: 6

__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)

Abort trap: 6



On Wednesday, July 13, 2016 at 8:37:28 AM UTC-4, Ed Scheinerman wrote:
>
>
>
> On Tuesday, July 12, 2016 at 8:16:03 AM UTC-4, David P. Sanders wrote:
>>
>> As a quick solution, I would suggest deleting or renaming ~/.julia/v0.4 
>> and reinstalling all the packages.
>>
>>
>>
> Good suggestion, minor hassle. Did it and the problem is not solved. I got 
> this today:
>
> Exception in Tkinter callback
>
> Traceback (most recent call last):
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/lib-tk/Tkinter.py", 
> line 1537, in __call__
>
> return self.func(*args)
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
>  
> line 283, in resize
>
> self.show()
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
>  
> line 355, in draw
>
> tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/tkagg.py",
>  
> line 30, in blit
>
> id(data), colormode, id(bbox_array))
>
> TclError
>
>
> julia(82876,0x7fff7ce8a000) malloc: *** error for object 0x7fefddbb2ad0: 
> pointer being freed was not allocated
>
> *** set a breakpoint in malloc_error_break to debug
>
>
> signal (6): Abort trap: 6
>
> __pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
> Abort trap: 6 
>


[julia-users] Re: Suddenly PyPlot giving me grief

2016-07-13 Thread Ed Scheinerman


On Tuesday, July 12, 2016 at 8:16:03 AM UTC-4, David P. Sanders wrote:
>
> As a quick solution, I would suggest deleting or renaming ~/.julia/v0.4 
> and reinstalling all the packages.
>
>
>
Good suggestion, minor hassle. Did it and the problem is not solved. I got 
this today:

Exception in Tkinter callback

Traceback (most recent call last):

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/lib-tk/Tkinter.py", 
line 1537, in __call__

return self.func(*args)

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
 
line 283, in resize

self.show()

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
 
line 355, in draw

tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)

  File 
"/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/tkagg.py",
 
line 30, in blit

id(data), colormode, id(bbox_array))

TclError


julia(82876,0x7fff7ce8a000) malloc: *** error for object 0x7fefddbb2ad0: 
pointer being freed was not allocated

*** set a breakpoint in malloc_error_break to debug


signal (6): Abort trap: 6

__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Abort trap: 6 


[julia-users] Re: Suddenly PyPlot giving me grief

2016-07-12 Thread David P. Sanders
As a quick solution, I would suggest deleting or renaming ~/.julia/v0.4 and 
reinstalling all the packages.


El martes, 12 de julio de 2016, 8:11:53 (UTC-4), Ed Scheinerman escribió:
>
> I've suddenly been having a great deal of trouble with PyPlot on Julia 
> 0.4.6 on Mac. 
>
> Here's one sort of problem I've gotten:
>
> julia> plot([1,2],[1,3])
>
> ERROR: ArgumentError: haskey of NULL PyObject
>
>  in haskey at /Users/ers/.julia/v0.4/PyCall/src/PyCall.jl:292
>
>  in plot at /Users/ers/.julia/v0.4/PyPlot/src/PyPlot.jl:381
>
>
> I tried reinstalling PyPlot, PyCall, Conda and I get this:
>
>
> julia> using PyPlot
>
> objc[75453]: Class TKApplication is implemented in both 
> /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
> /Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
> will be used. Which one is undefined.
>
> objc[75453]: Class TKMenu is implemented in both 
> /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
> /Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
> will be used. Which one is undefined.
>
> objc[75453]: Class TKContentView is implemented in both 
> /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
> /Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
> will be used. Which one is undefined.
>
> objc[75453]: Class TKWindow is implemented in both 
> /System/Library/Frameworks/Tk.framework/Versions/8.5/Tk and 
> /Users/ers/.julia/v0.4/Conda/deps/usr/lib/libtk8.5.dylib. One of the two 
> will be used. Which one is undefined.
>
> /Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/font_manager.py:273:
>  
> UserWarning: Matplotlib is building the font cache using fc-list. This may 
> take a moment.
>
>   warnings.warn('Matplotlib is building the font cache using fc-list. This 
> may take a moment.')
>
>
> julia> plot([1,2],[1,3])
>
> Exception in Tkinter callback
>
> Traceback (most recent call last):
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/lib-tk/Tkinter.py", 
> line 1537, in __call__
>
> return self.func(*args)
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
>  
> line 283, in resize
>
> self.show()
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.py",
>  
> line 355, in draw
>
> tkagg.blit(self._tkphoto, self.renderer._renderer, colormode=2)
>
>   File 
> "/Users/ers/.julia/v0.4/Conda/deps/usr/lib/python2.7/site-packages/matplotlib/backends/tkagg.py",
>  
> line 30, in blit
>
> id(data), colormode, id(bbox_array))
>
> TclError
>
> julia(75453,0x7fff7ce8a000) malloc: *** error for object 0x7ff91bd574d0: 
> pointer being freed was not allocated
>
> *** set a breakpoint in malloc_error_break to debug
>
>
> signal (6): Abort trap: 6
>
> __pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
>
> Abort trap: 6
>
>
> I can't plot anything now. 
>
>
> Help! 
>
>
> Thanks.
>