Mailing List Archive

1.5.1 on IRIX
Hello,

I built the 1.5.1 distro on one of our irix6.4 systems ( n64-mips4
arch), using the -32 (-o32) compiler. This was installed in the
"normal" place - /usr/local/.... and ran fine on that machine.

Now I have moved this installation to a NFS mount, and tried running the
interpreter on another irix6.4 system with similar characterstics. I am
setting PYTHONPATH to point to the location of new python runtime
libraries:

The libs originally where built/installed -> /usr/local/lib/python1.5
re-installed as ${somedir}/lib/irix32, and set PYTHONPATH to
${somedir}/lib/irix32.

the interpreter itself is re-located in ${somedir}/bin/irix32/

I can run python in its new location on the old system, just fine:

setenv PYTHONPATH ${somedir}/lib/irix32
${somedir}/bin/irix32/python -v

and get the normal debugging info when the modules are loaded, which
confirms they are loading out of my specified PYTHONPATH.

However, when I try running this installation on another one of our irix
systems, I get:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 1.5.1 (#3, May 21 1999, 16:24:24) [C] on irix646-32-mips2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Contacting Registry ...
environment exported ...
-- Using registry version : 10.0

>>>

The messages about Registry, are coming from SWIGged module linked
against the interpreter. I looks like that is working fine in this
installation on both systems. It would appear that the warnings on the
second system are non-fatal.

Any ideas how to "fix" or suppress them?

Rob


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
1.5.1 on IRIX [ In reply to ]
From: Andrew Dalke <dalke@bioreason.com>

rceci@my-deja.com said:
> The libs originally where built/installed -> /usr/local/lib/python1.5
> re-installed as ${somedir}/lib/irix32, and set PYTHONPATH to
> ${somedir}/lib/irix32.

> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

> Any ideas how to "fix" or suppress them?


Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

The default module search path uses <prefix>/python1.5.


Actually, it's a little more complicated than that. The default
module search path uses <prefix>/python1.5 so you'll need to
move
${somedir}/lib/irix32
to
${somedir}/lib/irix32/python1.5

then setenv PYTHONHOME ${somedir}/lib/irix32 .

Andrew
dalke@acm.org
1.5.1 on IRIX [ In reply to ]
From: rceci@my-deja.com

Hello,

I built the 1.5.1 distro on one of our irix6.4 systems ( n64-mips4
arch), using the -32 (-o32) compiler. This was installed in the
"normal" place - /usr/local/.... and ran fine on that machine.

Now I have moved this installation to a NFS mount, and tried running the
interpreter on another irix6.4 system with similar characterstics. I am
setting PYTHONPATH to point to the location of new python runtime
libraries:

The libs originally where built/installed -> /usr/local/lib/python1.5
re-installed as ${somedir}/lib/irix32, and set PYTHONPATH to
${somedir}/lib/irix32.

the interpreter itself is re-located in ${somedir}/bin/irix32/

I can run python in its new location on the old system, just fine:

setenv PYTHONPATH ${somedir}/lib/irix32
${somedir}/bin/irix32/python -v

and get the normal debugging info when the modules are loaded, which
confirms they are loading out of my specified PYTHONPATH.

However, when I try running this installation on another one of our irix
systems, I get:

Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 1.5.1 (#3, May 21 1999, 16:24:24) [C] on irix646-32-mips2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Contacting Registry ...
environment exported ...
-- Using registry version : 10.0

>>>

The messages about Registry, are coming from SWIGged module linked
against the interpreter. I looks like that is working fine in this
installation on both systems. It would appear that the warnings on the
second system are non-fatal.

Any ideas how to "fix" or suppress them?

Rob


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
1.5.1 on IRIX [ In reply to ]
rceci@my-deja.com said:
> The libs originally where built/installed -> /usr/local/lib/python1.5
> re-installed as ${somedir}/lib/irix32, and set PYTHONPATH to
> ${somedir}/lib/irix32.

> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

> Any ideas how to "fix" or suppress them?


Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

The default module search path uses <prefix>/python1.5.


Actually, it's a little more complicated than that. The default
module search path uses <prefix>/python1.5 so you'll need to
move
${somedir}/lib/irix32
to
${somedir}/lib/irix32/python1.5

then setenv PYTHONHOME ${somedir}/lib/irix32 .

Andrew
dalke@acm.org
1.5.1 on IRIX [ In reply to ]
Andrew,

Took your suggestions - moved the libs back under a python1.5 subdir,
and set PYTHONHOME. Here is my results (this the output of my csh
script running the relocated python runtime ):

PYTHONPATH=/usr/mdi_dev//python/lib/irix32/python1.5
PYTHONHOME=/usr/mdi_dev//python/lib/irix32
python=/usr/mdi_dev//python/bin/irix32/python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
# /usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.py
import exceptions # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/site.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/site.py
import site # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/site.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/os.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/os.py
import os # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/os.pyc
import posix # builtin
# /usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.py
import posixpath # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/stat.py
import stat # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.py
import UserDict # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc
Python 1.5.1 (#3, May 21 1999, 16:24:24) [C] on irix646-32-mips2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
# /usr/mdi_dev//python/lib/irix32/python1.5/string.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/string.py
import string # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/string.pyc
import strop # builtin
>>>

I have a PYTHONSTARTUP that simply imports os,sys,string.

It looks like python is loading all of its modules from the correct
place (*/usr/mdi_dev/python"), as opposed to where the interpreter was
told during buildtime ("/usr/local").

I am wondering - on this second machine that is causing the warnings to
be printed out, there is no python installation in /usr/local. Does
python check its configured buildtime prefix/exec_prefix locations, EVEN
though PYTHONHOME and PYTHONPATH are setup so python is instructed to
get its runtimes from the new location? That would be a bummer, because
we are
distributing binaries to our customers, and need to put the distro in
any arbitrary customer-specified location, and having these warnings pop
up would probably cause a lot of confusion.

Thanks

Rob




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
1.5.1 on IRIX [ In reply to ]
From: rceci@my-deja.com

Andrew,

Took your suggestions - moved the libs back under a python1.5 subdir,
and set PYTHONHOME. Here is my results (this the output of my csh
script running the relocated python runtime ):

PYTHONPATH=/usr/mdi_dev//python/lib/irix32/python1.5
PYTHONHOME=/usr/mdi_dev//python/lib/irix32
python=/usr/mdi_dev//python/bin/irix32/python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
# /usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.py
import exceptions # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/site.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/site.py
import site # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/site.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/os.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/os.py
import os # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/os.pyc
import posix # builtin
# /usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.py
import posixpath # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/stat.py
import stat # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.py
import UserDict # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc
Python 1.5.1 (#3, May 21 1999, 16:24:24) [C] on irix646-32-mips2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
# /usr/mdi_dev//python/lib/irix32/python1.5/string.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/string.py
import string # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/string.pyc
import strop # builtin
>>>

I have a PYTHONSTARTUP that simply imports os,sys,string.

It looks like python is loading all of its modules from the correct
place (*/usr/mdi_dev/python"), as opposed to where the interpreter was
told during buildtime ("/usr/local").

I am wondering - on this second machine that is causing the warnings to
be printed out, there is no python installation in /usr/local. Does
python check its configured buildtime prefix/exec_prefix locations, EVEN
though PYTHONHOME and PYTHONPATH are setup so python is instructed to
get its runtimes from the new location? That would be a bummer, because
we are
distributing binaries to our customers, and need to put the distro in
any arbitrary customer-specified location, and having these warnings pop
up would probably cause a lot of confusion.

Thanks

Rob




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.