Operating System - HP-UX
1830250 Members
2921 Online
110000 Solutions
New Discussion

Python installation problem

 
Blake Garretson
Advisor

Python installation problem

I installed the Python package on a new HP-UX 11.0 box, and I'm getting an error every time I run it. It says:

Could not find platform dependent libraries
Consider setting $PYTHONHOME to [:]

I promptly read the man page and then typed:
export PYTHONHOME=/opt/python
and then for good measure:
export PYTHONPATH=/opt/python

I still get the error every time. Anybody know what I'm doing wrong?
8 REPLIES 8
James R. Ferguson
Acclaimed Contributor

Re: Python installation problem

Blake:

Is 'opt/python' in your PATH?

...JRF...
Rick Garland
Honored Contributor

Re: Python installation problem

It appears that a configuration item telling where the libraries are was not included.
It has not been told where those libraries are.
Denver Osborn
Honored Contributor

Re: Python installation problem

is the path to the python libs and is the path to the python binary. If $PYTHONHOME is set to /opt/python it is expecting to find both bin and libs in this location.

To tell python the location of the libs and the binary try this;

# export PYTHONHOME=:

= python lib path
= python bin path
Blake Garretson
Advisor

Re: Python installation problem

Thanks for the suggestions, but I've tried all of the obvious variations of PATH settings and PYTHONHOME settings. I now have /opt/python/lib/python1.5 AND /opt/python/bin in my PATH. I have also tried many variations of PYTHONHOME such as:
PYTHONHOME=/opt/python:/opt/python
PYTHONHOME=/opt/python/lib:/opt/python/bin
PYTHONHOME=/opt/python/lib/python1.5:/opt/python/bin

and the list goes on. Has anyone out there ever successfully installed this package? I installed the depot version from the http://hpux.cae.wisc.edu/ archive.
Thanks for the input.
Denver Osborn
Honored Contributor

Re: Python installation problem

Blake,

I've just installed that ver of python on a 10.20 system and can't get it to start without displaying the error. I've done all that was sugested in the man page with out any change.

I'll let you know what it is when I find it. You might want to check out www.python.org for any hp-ux notes. The README provided wasnt very clear to me.
Blake Garretson
Advisor

Re: Python installation problem

Thanks for trying, Denver. The funny thing is that the interpreter seems to still work okay. I just get that annoying error every time I run it.
Blake Garretson
Advisor

Re: Python installation problem

I solved my problem. Apparently the depot I got from the archive was bad. I downloaded the source, changed the Makefile, and compiled it myself. My build works fine and the message is gone.

So to save yourself some time, if anybody wants to install Python, do it from the source and not the depot.
Alex Glennie
Honored Contributor

Re: Python installation problem

Blake I'd give yourself 10 pts ;)