Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501236 - =dev-lang/python-2.7.6 - *** WARNING: renaming "_tkinter" since importing it failed: libtk8.6.so: cannot open shared object file: No such file or directory
Summary: =dev-lang/python-2.7.6 - *** WARNING: renaming "_tkinter" since importing it ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 501336 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-13 18:48 UTC by Jason Mours
Modified: 2018-04-24 15:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (python-2.7.6-build.log,135.87 KB, text/plain)
2014-02-13 18:50 UTC, Jason Mours
Details
emerge-info (python-2.7.6-emerge.info,18.67 KB, text/plain)
2014-02-13 18:50 UTC, Jason Mours
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mours 2014-02-13 18:48:34 UTC
Having problems with dev-lang/python-2.7.6 building _tkinter with the following output:

Python build finished, but the necessary bits to build these modules were not found:
bsddb185           dl                 imageop         
sunaudiodev                                           
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_tkinter                                              

running build_scripts
creating build/scripts-2.7
copying and adjusting /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Tools/scripts/pydoc -> build/scripts-2.7
copying and adjusting /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Tools/scripts/idle -> build/scripts-2.7
copying and adjusting /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Tools/scripts/2to3 -> build/scripts-2.7
copying and adjusting /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Lib/smtpd.py -> build/scripts-2.7
changing mode of build/scripts-2.7/pydoc from 644 to 755
changing mode of build/scripts-2.7/idle from 644 to 755
changing mode of build/scripts-2.7/2to3 from 644 to 755
changing mode of build/scripts-2.7/smtpd.py from 644 to 755
Makefile:475: recipe for target 'sharedmods' failed
make: *** [sharedmods] Error 1

: I recently had to downgrade my tickle and toolkit to dev-lang/tcl-8.5.15-r1 and dev-lang/tk-8.5.15 to accommodate ruby's toolkit which does not agree with tcl-8.6 / tk-8.6 , if it's related. Posting build.log

Reproducible: Always
Comment 1 Jason Mours 2014-02-13 18:50:07 UTC
Created attachment 370334 [details]
build.log
Comment 2 Jason Mours 2014-02-13 18:50:22 UTC
Created attachment 370336 [details]
emerge-info
Comment 3 Jason Mours 2014-02-13 19:04:07 UTC
I'm having similar issues with dev-lang/python-3.3.3 building _tkinter but it does not post missing modules cited in dev-lang/python-2.7.6... So this maybe my bug, was it safe to roll back tickle and toolkit?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-14 13:42:19 UTC
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv -DNDEBUG -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11/include -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_tkinter.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv -DNDEBUG -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11/include -I. -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/tkappinit.c -o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/tkappinit.o
gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -L. -fno-strict-aliasing -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv -DNDEBUG -I. -IInclude -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_tkinter.o build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/tkappinit.o -L/usr/X11/lib -L. -lBLT -ltk8.5 -ltcl8.5 -lX11 -lpython2.7 -o build/lib.linux-x86_64-2.7/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: libtk8.6.so: cannot open shared object file: No such file or directory

It references both libtk8.6.so and -ltk8.5 - which would you like to have?
Comment 5 Jason Mours 2014-02-14 21:32:50 UTC
(In reply to Jeroen Roovers from comment #4)
> building '_tkinter' extension
> gcc -pthread -fPIC -fno-strict-aliasing -march=native -mtune=amdfam10 -Os
> -pipe -ggdb -fwrapv -DNDEBUG -DWITH_APPINIT=1 -DWITH_BLT=1
> -I/usr/X11/include -I.
> -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include
> -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c
> /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/_tkinter.c
> -o
> build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/
> Python-2.7.6/Modules/_tkinter.o
> gcc -pthread -fPIC -fno-strict-aliasing -march=native -mtune=amdfam10 -Os
> -pipe -ggdb -fwrapv -DNDEBUG -DWITH_APPINIT=1 -DWITH_BLT=1
> -I/usr/X11/include -I.
> -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include
> -I/var/tmp/portage/dev-lang/python-2.7.6/work/x86_64-pc-linux-gnu -c
> /var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Modules/tkappinit.c
> -o
> build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/
> Python-2.7.6/Modules/tkappinit.o
> gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 -Wl,--as-needed -L.
> -fno-strict-aliasing -march=native -mtune=amdfam10 -Os -pipe -ggdb -fwrapv
> -DNDEBUG -I. -IInclude
> -I/var/tmp/portage/dev-lang/python-2.7.6/work/Python-2.7.6/Include
> build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/
> Python-2.7.6/Modules/_tkinter.o
> build/temp.linux-x86_64-2.7/var/tmp/portage/dev-lang/python-2.7.6/work/
> Python-2.7.6/Modules/tkappinit.o -L/usr/X11/lib -L. -lBLT -ltk8.5 -ltcl8.5
> -lX11 -lpython2.7 -o build/lib.linux-x86_64-2.7/_tkinter.so
> *** WARNING: renaming "_tkinter" since importing it failed: libtk8.6.so:
> cannot open shared object file: No such file or directory
> 
> It references both libtk8.6.so and -ltk8.5 - which would you like to have?

If I get to have a choice in the matter, -ltk8.5 seems like the way to go. With ruby not toolkiting proper with 8.6, I suppose I'll mask tcl/tk-8.6 and wait for tickle math to mature. I'll submit my python-3.3.3 bug as well.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-15 00:39:34 UTC
*** Bug 501336 has been marked as a duplicate of this bug. ***
Comment 7 Mike Gilbert gentoo-dev 2014-02-15 02:51:41 UTC
I can't reproduce here.

Make sure you have removed both /usr/lib64/libtcl8.6.so and /usr/lib64/libtk8.6.so after downgrading to tcl-8.5 and tk-8.5. Portage will keep them installed if you have preserve-libs enabled.
Comment 8 Jason Mours 2014-02-15 05:46:22 UTC
(In reply to Mike Gilbert from comment #7)
> I can't reproduce here.
> 
> Make sure you have removed both /usr/lib64/libtcl8.6.so and
> /usr/lib64/libtk8.6.so after downgrading to tcl-8.5 and tk-8.5. Portage will
> keep them installed if you have preserve-libs enabled.

Neither file is on this machine, and /usr/lib64/libtk.so & /usr/lib64/libtcl.so are pointing to 8.5
Comment 9 Mike Gilbert gentoo-dev 2014-02-15 17:38:23 UTC
Sorry to do this, but I can't see where tk8.6 is coming from.
Comment 10 Jason Mours 2014-02-15 18:46:25 UTC
(In reply to Mike Gilbert from comment #9)
> Sorry to do this, but I can't see where tk8.6 is coming from.

It's probably legacy from when TCL/tk was multislot. Some sed statement of sorts, but I can't sed properly. Oh well.
Comment 11 Jason Mours 2014-03-14 22:04:40 UTC
I'm still getting errors with dev-lang/python-3.3.4, which was no surprise. But I was wondering if the problem was with old legacy tickle/toolkit multi-slotting. It doesn't look like it was pulled out of python all the way. Could this be passed along? I'd rather see multislot come back to tcl/tk, but either way this could generate (be generating) more anomalies thru out.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-24 15:43:59 UTC
No action for 4 years.  I don't think we can do or figure out more here.