python make dies :libtk8.5.so: cannot open shared object file: No such file or directory
Trying to build python-2.6.2 ./configure --prefix=/usr/local --exec-prefix=/usr/local LDFLAGS="-L/ usr/local" (runs through happily, had to make some libs local) make runs most of the way until… building '_tkinter' extension gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/tmp/ meld/Python-2.6.2/./Include -I. -IInclude -I./Include -I/usr/local/ include -I/tmp/meld/Python-2.6.2/Include -I/tmp/meld/Python-2.6.2 -c / tmp/meld/Python-2.6.2/Modules/_tkinter.c -o build/temp.linux-i686-2.6/ tmp/meld/Python-2.6.2/Modules/_tkinter.o gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall - Wstrict-prototypes -DWITH_APPINIT=1 -I/usr/X11R6/include -I. -I/tmp/ meld/Python-2.6.2/./Include -I. -IInclude -I./Include -I/usr/local/ include -I/tmp/meld/Python-2.6.2/Include -I/tmp/meld/Python-2.6.2 -c / tmp/meld/Python-2.6.2/Modules/tkappinit.c -o build/temp.linux-i686-2.6/ tmp/meld/Python-2.6.2/Modules/tkappinit.o gcc -pthread -shared build/temp.linux-i686-2.6/tmp/meld/Python-2.6.2/ Modules/_tkinter.o build/temp.linux-i686-2.6/tmp/meld/Python-2.6.2/ Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/ lib -ltk8.5 -ltcl8.5 -lX11 -o build/lib.linux-i686-2.6/_tkinter.so *** WARNING: renaming "_tkinter" since importing it failed: libtk8.5.so: cannot open shared object file: No such file or directory Failed to find the necessary bits to build these modules: _sqlite3 bsddb185 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 # cd /usr/local/lib # ls -la | grep libtk8.5.so -r-xr-xr-x 1 root root 1112606 Jul 10 13:28 libtk8.5.so Am I missing something, it’s there? Regards, -Tony -- http://mail.python.org/mailman/listinfo/python-list
Re: python make dies :libtk8.5.so: cannot open shared object file: No such file or directory
On Jul 13, 10:09 am, Christian Heimes wrote: > Tony Lay wrote: > > # cd /usr/local/lib > > > # ls -la | grep libtk8.5.so > > > -r-xr-xr-x 1 root root 1112606 Jul 10 13:28 libtk8.5.so > > > Am I missing something, it’s there? > > Is /usr/local/lib in your library search path? It looks like it isn't. > Check /etc/ld.so.conf and /etc/ld.so.conf.d/. > > Christian I added /usr/local/lib to ld.so.conf.d/python26.conf and ran ldconfig (thanks Chrisitan) Ran a make distclean (had to move the files and got a “file not found” from my previous working directory). Everything compiled and installed like a charm. Thanks! -- http://mail.python.org/mailman/listinfo/python-list
ImportError: No module named _functools
I'm sooo close to getting this meld program runninghad to install a lot of things in /usr/local to get to pygtk2 functional and I'm trying to run the meld program and get... RHEL4 server Traceback (most recent call last): File "/usr/local/bin/meld", line 35, in import gettext File "/usr/local/lib/python2.6/gettext.py", line 49, in import locale, copy, os, re, struct, sys File "/usr/local/lib/python2.6/locale.py", line 15, in import functools File "/usr/local/lib/python2.6/functools.py", line 10, in from _functools import partial, reduce ImportError: No module named _functools This is with me building all of the dependencies as well as python with ./configure --prefix=/usr/local --exec-prefix=/usr/local make distclean make make -i install ldconfig export PYTHONHOME=/usr/local/lib/python2.6 export PYTHONPATH=/usr/local/lib/python2.6:/usr/local/lib/python2.6/ site-packages I thought it might have been an err of the application, but I ran python and received the same error: [r...@orlstscts1 meld-1.0.0]# python Python 2.6.2 (r262:71600, Jul 14 2009, 11:47:04) [GCC 3.4.6 20060404 (Red Hat 3.4.6-9)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import functools Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.6/functools.py", line 10, in from _functools import partial, reduce ImportError: No module named _functools Kind of a python n00b, but the functools.py is there, it's in the path...everything seems to be lined up right. Problem is that the server this is on is stable (read older), and I am to not touch the older software unless it's as a last resort. For this reason everything is in /usr/local and built from the ground up. I'm hoping that there's some silly dependency I'm missing. I've installed the following: atk-1.26.0 pkg-config-0.23 cairo-1.8.8 libglade-2.6.4 pycairo-1.8.6 fontconfig-2.7.0 libpng-1.2.37 pygobject-2.18.0 freetype-2.1.10 libxml2-2.7.3 pygtk-2.15.2 gettext-0.17 meld-1.0.0 pygtk-2.8.6 glade3-3.6.7 meld-1.1.5 Python-2.6.2 glib-2.20.4 glibc-2.9 meld-1.3.0 (no install) tcl8.5.7 tk8.5.7 gtk+-2.16.4 pango-1.20.5 intltool-0.35.5 pixman-0.15.14 Took me a while to get by fontconfig/freetype junk because (usr/local/ lib/libfontconfig.so: undefined reference to `FT_Select_Size') but that's a little OT. If there are any recommendations of what to attack or further information would help let me know! Regards, -Tony -- http://mail.python.org/mailman/listinfo/python-list
Re: ImportError: No module named _functools
On Jul 16, 10:14 am, a...@pythoncraft.com (Aahz) wrote: > In article > <45228cf4-0b37-4c52-bf6f-d7bd124b0...@l32g2000vbp.googlegroups.com>, > Tony Lay wrote: > > > > >Traceback (most recent call last): > > File "/usr/local/bin/meld", line 35, in > > import gettext > > File "/usr/local/lib/python2.6/gettext.py", line 49, in > > import locale, copy, os, re, struct, sys > > File "/usr/local/lib/python2.6/locale.py", line 15, in > > import functools > > File "/usr/local/lib/python2.6/functools.py", line 10, in > > from _functools import partial, reduce > >ImportError: No module named _functools > > Where is _functools.so? > -- > Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ > > "If you think it's expensive to hire a professional to do the job, wait > until you hire an amateur." --Red Adair /usr/local/lib/python2.6/lib-dynload/ It's in the path... export PYTHONHOME=/usr/local/lib/python2.6 export PYTHONPATH=/usr/local/lib/python2.6:/usr/local/lib/python2.6/ site-packages:/usr/local/lib/python2.6/lib-dynload:/usr/local/etc/ pango -- http://mail.python.org/mailman/listinfo/python-list
Re: ImportError: No module named _functools
On Jul 16, 10:14 am, a...@pythoncraft.com (Aahz) wrote: > In article > <45228cf4-0b37-4c52-bf6f-d7bd124b0...@l32g2000vbp.googlegroups.com>, > Tony Lay wrote: > > > > >Traceback (most recent call last): > > File "/usr/local/bin/meld", line 35, in > > import gettext > > File "/usr/local/lib/python2.6/gettext.py", line 49, in > > import locale, copy, os, re, struct, sys > > File "/usr/local/lib/python2.6/locale.py", line 15, in > > import functools > > File "/usr/local/lib/python2.6/functools.py", line 10, in > > from _functools import partial, reduce > >ImportError: No module named _functools > > Where is _functools.so? > -- > Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ > > "If you think it's expensive to hire a professional to do the job, wait > until you hire an amateur." --Red Adair /usr/local/lib/python2.6/lib-dynload/ It's in the path... export PYTHONHOME=/usr/local/lib/python2.6 export PYTHONPATH=/usr/local/lib/python2.6:/usr/local/lib/python2.6/ site-packages:/usr/local/lib/python2.6/lib-dynload:/usr/local/etc/ pango -- http://mail.python.org/mailman/listinfo/python-list