I attempted to rebuild tcltk first, but that didn't change anything as you
suspected.

However, rebuilding python2.7 also failed with the following error:

Python build finished, but the necessary bits to build these modules were
not found:
bsddb185           dl                 imageop
linuxaudiodev      ossaudiodev        spwd
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the
module's name.
(Fink package build should have 7 missing)


Failed to build these modules:
_tkinter

make: *** [sharedmods] Error 1
### execution of /tmp/fink.E11bI failed, exit code 2
### execution of /tmp/fink.pV8XF failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-python27-2.7.5-4
(Reading database ... 253546 files and directories currently installed.)
Removing fink-buildlock-python27-2.7.5-4 ...
Failed: phase compiling: python27-2.7.5-4 failed

I also attempted to rebuild tcltk--shlibs as Hanspeter recommended,
however, rebuilding python after that still failed with the above error.

A search through all the setup.py files in /sw/*  for those 7 modules
returned empty so they don't appear to be present there. From that list of
modules, the only ones that look to be important for my purposes are
bsddb185 and dl.

Could it be that since it can't find dl, that it is unable to load the
dlopen() function?  Is there a way to install those modules independently?
 Maybe I can just download a fresh copy of python? Is there a recommended
way to do that?

Tom



--
Thomas D. Grant, Ph.D.
Post-doctoral Scholar
Hauptman-Woodward Medical Research Institute
700 Ellicott St.
Buffalo, NY 14203


On Wed, Oct 30, 2013 at 2:49 PM, Alexander Hansen <
[email protected]> wrote:

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

Reply via email to