libpython2.5.so.1.0 issue, no sudo

Asked by Piet

Hi All,

I am on a 64 bit system with python2.7 installed. I am currently having an issue with libpython2.5.so.1.0 not being found, when trying to import a package. I know the general solution would be in my case, I believe:

sudo ln -s /usr/lib64/libpython2.7.so.1.0 /usr/lib64/libpython2.5.so.1.0

(I have checked that /usr/lib64/libpython2.7.so.1.0 does indeed exist).

But unfortunately I don't have sudo permission. I am also a bit confused as to the local directory structure when it comes to python. I have so many lib and or lib64 folders.

So short of floading every single subdirectory from my home folder, where do I put the symlink?
And where does the package look for said file? Does it use my PYTHONPATH env variable?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Solved by:
Piet
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

If you hold shift at boot, you can boot to root recovery mode and run the command there to make the link.

Revision history for this message
Piet (pietjones) said :
#2

thanks for the response, unfortunately I will not be able to reboot.

The 64bit system, I should have mentioned sorry, is a torque cluster running openSUSE 11.4, and hence as a user I don't have admin privileges.

Revision history for this message
Piet (pietjones) said :
#3

thanks for the response, unfortunately I will not be able to reboot.

The 64bit system, I should have mentioned sorry, is a torque cluster running openSUSE 11.4, and hence as a user I don't have admin privileges.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

openSuse isn't supported here. This is Ubuntu support. Suse has it's own support forum here:
http://forums.opensuse.org/

I suggest you post there.

Revision history for this message
Piet (pietjones) said :
#5

Thanks for the pointer, I solved the problem by finding obscure references after using google and managed to piece together something. :)

For those that are interested, the following worked for me:

ln -s /usr/lib64/libpython2.7.so.1.0 ~/.local/lib64/libpython2.5.so.1.0

Just ensure that ~/.local/lib64 is listed in your LD_LIBRARY_PATH environmental variable, if not simply type in your ~/.bashrc file:

export LD_LIBRARY_PATH = $HOME/.local/lib64:$LD_LIBRARY_PATH

then go:

source ~/.bashrc

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Please post in the correct forum for your distro in future.