f



Can't find module named 'svn' in python

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.

0
yinglcs (84)
1/16/2007 12:28:10 AM
comp.lang.python 77058 articles. 6 followers. Post Follow

1 Replies
420 Views

Similar Articles

[PageSpeed] 16

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

yinglcs@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.

0
nanjundi (23)
1/16/2007 1:18:21 AM
Reply: