On 10/30/13 11:25 AM, Thomas Grant wrote: > Dear all, > > I recently ran fink update-all and now can't seem to run python 2.7 GUI > applications requiring _tkinter. > > When I try and simply import _tkinter in a python shell I get the > following error: > > >>> import _tkinter > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: dlopen(/sw/lib/python2.7/lib-dynload/_tkinter.so, 2): > Symbol not found: _waitpid > Referenced from: /sw/lib/libBLT.2.dylib > Expected in: /sw/lib/libtcl8.5.dylib > in /sw/lib/libBLT.2.dylib > > This didn't happen prior to the update. The > file /sw/lib/python2.7/lib-dynload/_tkinter.so exists, but I'm wondering > if something got corrupted during the update perhaps causing the error. > Unfortunately, since so many of my packages require tcl/tk, I am not > able to simply remove and reinstall the tcltk package, because fink > tells me there are other programs that depend on it, so it refuses to > remove it. > > It sounds like from the TkInter wiki page > (https://wiki.python.org/moin/TkInter) that it may have something to do > with the dynamic linker, but I couldn't figure out how to correct the > problem from there. > > Is there any way to reinstall tcl/tk without having to first remove all > the packages dependent on it (which apparently includes python2.7)? > > Thanks, > Tom > > BTW, I'm running OS X 10.8.4 with Xcode 4.6.3 and Fink version 0.35.2. > >
I don't reproduce that: $ /sw/bin/python2.7 Python 2.7.5 (default, Sep 27 2013, 09:19:13) [GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.75)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import _tkinter >>> I'm showing the following: $ nm -o /sw/lib/python2.7/lib-dynload/_tkinter.so | grep waitpid $ nm -o /sw/lib/libBLT.2.dylib | grep waitpid /sw/lib/libBLT.2.dylib: U _waitpid $ nm -o /sw/lib/libtcl8.5.dylib | grep waitpid /sw/lib/libtcl8.5.dylib: U _waitpid i.e. _waitpid isn't defined in those libraries, but my _tkinter.so is also not looking for it. "fink rebuild tcltk" will rebuild and reinstall tcltk without removing any other packages. It looks to me, though, that "fink rebuild python27" might be more helpful. Let us know one way or the other, because if a rebuild works then the current python27 packaging needs versioned dependencies so that it _automatically_ forces a rebuild. -- Alexander Hansen, Ph.D. Fink User Liaison My package updates: http://finkakh.wordpress.com/ ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
