error after upgrade

2009-03-09 Thread jonsoons
This script had  been running flawlessly for years but it does not
like 2.5:

mis /u/transfer/bin # ./printchecks AP void
Traceback (most recent call last):
  File "./printchecks", line 5, in 
import os, sys, string, tempfile, re
  File "/opt/csw/lib/python2.5/tempfile.py", line 33, in 
from random import Random as _Random
  File "/opt/csw/lib/python2.5/random.py", line 46, in 
from binascii import hexlify as _hexlify
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/
lib/libpython2.5.so.1.0: symbol libintl_gettext: referenced symbol not
found
[8536 refs]
mis /u/transfer/bin #

Does anyone know what I need to rewrite here?
Thanks
jon soons
--
http://mail.python.org/mailman/listinfo/python-list


Re: error after upgrade

2009-03-09 Thread jonsoons
On Mar 9, 12:00 pm, "Richard Brodie"  wrote:
> "jonsoons"  wrote in message
>
> news:3102ef22-b5e6-466d-a3f3-8648ccb5a...@p11g2000yqe.googlegroups.com...
>
> >    from binascii import hexlify as _hexlify
> > ImportError: ld.so.1: python: fatal:relocationerror:file/opt/csw/
> > lib/libpython2.5.so.1.0: symbol libintl_gettext: referenced symbol not
> > Does anyone know what I need to rewrite here?
>
> Your upgrade policy? You seem to have a bad Python install, or
> conflict between the system Python and a local version.

Aha. Since I have the /opt/csw/ sandbox and the /usr/sfw sandbox (on
Solaris)
and both have a version of Python
I will try and move the app over and see if things improve.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list


error compiling 2.5

2009-03-10 Thread jonsoons
I am compiling 2.5 on Solaris 10 SPARC.
I edited Modules/Setup to try and enable tkinter. ranlib claims that
it cannot find
libtk8.4.so even though I have a -L option pointing to it.

ranlib libpython2.5.a
/usr/sfw/bin/gcc   -o python \
Modules/python.o \
libpython2.5.a -lsocket -lnsl -lrt -ldl  -L/
opt/csw/lib -ltk8.4 -ltcl8.4 -L/usr/openwin/lib -lX11-L/home/
jonsoons/lib -lz   -lm
case $MAKEFLAGS in \
*-s*)  CC='/usr/sfw/bin/gcc' LDSHARED='/usr/sfw/bin/gcc -
shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./
python -E ./setup.py -q build;; \
*)  CC='/usr/sfw/bin/gcc' LDSHARED='/usr/sfw/bin/gcc -shared'
OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./
setup.py build;; \
esac
ld.so.1: python: fatal: libtk8.4.so: open failed: No such file or
directory
Killed
make: *** [sharedmods] Error 137
mis /home/jonsoons/Python-2.5.4 # glocate libtk8.4.so
/opt/csw/lib/libtk8.4.so

mis /home/jonsoons/Python-2.5.4 # file /opt/csw/lib/libtk8.4.so
/opt/csw/lib/libtk8.4.so:   ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, stripped

mis /home/jonsoons/Python-2.5.4 #

Did I screw up Modules/Setup?
Thanks
jon soons
--
http://mail.python.org/mailman/listinfo/python-list