python - Tkinter moviepy issue -
on mac os 10.11 in python abort trap when doing:
from moviepy.editor import * tkinter import * root = tk() the abort trap looks like:
2016-01-27 16:01:24.723 python[13070:104308] -[nsapplication _setup:]: unrecognized selector sent instance 0x7ffa632d9bd0 2016-01-27 16:01:24.724 python[13070:104308] uncaught exception raised 2016-01-27 16:01:24.724 python[13070:104308] -[nsapplication _setup:]: unrecognized selector sent instance 0x7ffa632d9bd0 2016-01-27 16:01:24.724 python[13070:104308] ( 0 corefoundation 0x00007fff933e4ae2 __exceptionpreprocess + 178 1 libobjc.a.dylib 0x00007fff92bdb73c objc_exception_throw + 48 2 corefoundation 0x00007fff933e7b9d -[nsobject(nsobject) doesnotrecognizeselector:] + 205 3 corefoundation 0x00007fff93320601 ___forwarding___ + 1009 4 corefoundation 0x00007fff93320188 _cf_forwarding_prep_0 + 120 5 tk 0x0000000110f42958 tkpinit + 476 6 tk 0x0000000110ebda7e tk_init + 1799 7 _tkinter.so 0x000000010cdb8b9d tcl_appinit + 82 8 _tkinter.so 0x000000010cdb8547 tkinter_create + 1120 9 python 0x0000000108de7bcd pyeval_evalframeex + 26858 10 python 0x0000000108de10f1 pyeval_evalcodeex + 1583 11 python 0x0000000108d85fb1 function_call + 352 12 python 0x0000000108d67eb0 pyobject_call + 99 13 python 0x0000000108d72cb8 instancemethod_call + 173 14 python 0x0000000108d67eb0 pyobject_call + 99 15 python 0x0000000108deb06f pyeval_callobjectwithkeywords + 165 16 python 0x0000000108d70f5c pyinstance_new + 126 17 python 0x0000000108d67eb0 pyobject_call + 99 18 python 0x0000000108de7a27 pyeval_evalframeex + 26436 19 python 0x0000000108de10f1 pyeval_evalcodeex + 1583 20 python 0x0000000108de0abc pyeval_evalcode + 54 21 python 0x0000000108e04ea1 run_mod + 53 22 python 0x0000000108e04ccc pyrun_interactiveoneflags + 377 23 python 0x0000000108e047c5 pyrun_interactiveloopflags + 192 24 python 0x0000000108e0466f pyrun_anyfileexflags + 60 25 python 0x0000000108e16445 py_main + 3137 26 libdyld.dylib 0x00007fff916435ad start + 1 27 ??? 0x0000000000000001 0x0 + 1 ) 2016-01-27 16:01:24.725 python[13070:104308] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[nsapplication _setup:]: unrecognized selector sent instance 0x7ffa632d9bd0' *** first throw call stack: ( 0 corefoundation 0x00007fff933e4ae2 __exceptionpreprocess + 178 1 libobjc.a.dylib 0x00007fff92bdb73c objc_exception_throw + 48 2 corefoundation 0x00007fff933e7b9d -[nsobject(nsobject) doesnotrecognizeselector:] + 205 3 corefoundation 0x00007fff93320601 ___forwarding___ + 1009 4 corefoundation 0x00007fff93320188 _cf_forwarding_prep_0 + 120 5 tk 0x0000000110f42958 tkpinit + 476 6 tk 0x0000000110ebda7e tk_init + 1799 7 _tkinter.so 0x000000010cdb8b9d tcl_appinit + 82 8 _tkinter.so 0x000000010cdb8547 tkinter_create + 1120 9 python 0x0000000108de7bcd pyeval_evalframeex + 26858 10 python 0x0000000108de10f1 pyeval_evalcodeex + 1583 11 python 0x0000000108d85fb1 function_call + 352 12 python 0x0000000108d67eb0 pyobject_call + 99 13 python 0x0000000108d72cb8 instancemethod_call + 173 14 python 0x0000000108d67eb0 pyobject_call + 99 15 python 0x0000000108deb06f pyeval_callobjectwithkeywords + 165 16 python 0x0000000108d70f5c pyinstance_new + 126 17 python 0x0000000108d67eb0 pyobject_call + 99 18 python 0x0000000108de7a27 pyeval_evalframeex + 26436 19 python 0x0000000108de10f1 pyeval_evalcodeex + 1583 20 python 0x0000000108de0abc pyeval_evalcode + 54 21 python 0x0000000108e04ea1 run_mod + 53 22 python 0x0000000108e04ccc pyrun_interactiveoneflags + 377 23 python 0x0000000108e047c5 pyrun_interactiveloopflags + 192 24 python 0x0000000108e0466f pyrun_anyfileexflags + 60 25 python 0x0000000108e16445 py_main + 3137 26 libdyld.dylib 0x00007fff916435ad start + 1 27 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception abort trap: 6 moviepy latest version (0.2.2.11), tkinter recommended build tcl/tk website. notice when import moviepy.editor tkinter symbol pops in dock if tk() object being instantiated moviepy? strange, frustrating.
fixed. turns out weird issue matplotlib. doing:
import matplotlib matplotlib.use('tkagg') does trick. there other questions, on website, abort trap has appeared, , perhaps need done.
Comments
Post a Comment