aitjcize / PyTox

Python binding for Project-Tox the skype replacement.
GNU General Public License v3.0
96 stars 29 forks source link

libtoxcore.so.0 #7

Closed ghost closed 10 years ago

ghost commented 10 years ago

I've compiled and installed Tox from source and installed PyTox.

However i get this error when i try to import tox in python:

ImportError: libtoxcore.so.0: cannot open shared object file: No such file or directory

Is this a PyTox issue or is this related to something else?

aitjcize commented 10 years ago

This is not a PyTox issue. It is because tox.so can't find libtoxcore.so.0

Where is your tox installed? If you installed it locally, you may need to set the LD_LIBRARY_PATH for ld to find libtoxcore.so

ghost commented 10 years ago

It's in the default location, and libtoxcore.so.0 is in "/usr/local/lib".

How would i go on to fix this?

aitjcize commented 10 years ago

Can you rebuild PyTox again? I just removed a deprecated API from toxcore. Can you try the command:

export LD_LIBRARY_PATH=/usr/local/lib

Then try import PyTox?

ghost commented 10 years ago

Okay, this fixed the issue. Successfully imports tox now.

Thanks for your help.