By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,199 Members | 1,064 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,199 IT Pros & Developers. It's quick & easy.

Can't find module named 'svn' in python

P: n/a
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.

Jan 16 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

yi*****@gmail.com wrote:
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.
Jan 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.