Can't find module named 'svn' in python

Y

yinglcs

Hi,

i have a simple test which tries to load 'svn' moddule.

# python -c "from svn import client"
Traceback (most recent call last):
File "<string>", line 1, in ?
ImportError: No module named svn

I have checked I have sub-directories 'libsvn', 'svn' under
/usr/local/lib/svn-python/

cd /usr/local/lib/svn-python/
[root@localhost svn-python]# ls
libsvn svn

But python still can't find it. Please tell me what am I missing. I
appreciate your help.
 
N

Nanjundi

My first thought:
Check if you have /usr/local/lib/svn-python/ in your PYTHONPATH
environment variable (echo $PYTHONPATH).

If its missing, set it in the environment.
export PYTHONPATH=$PYTHONPATH:/usr/local/lib/svn-python

-N
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top