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