Have you tried using the conda local install?

ENV["PYTHON"] = ""
Pkg.build("PyPlot")

Also it's not a real solution, but you could try Plots.jl with a different
backend. It sounds like you have a system library clash of some sort, and
in my experience those sorts of bugs will easily sink a week of debugging
with no good solution.

On Wednesday, July 13, 2016, Ed Scheinerman <[email protected]>
wrote:

> 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
>>
>

Reply via email to