Can't find module named 'svn' in python

Discussion in 'Python' started by yinglcs@gmail.com, Jan 16, 2007.

  1. Guest

    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, 2007
    #1
    1. Advertising

  2. Nanjundi Guest

    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

    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.
     
    Nanjundi, Jan 16, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. eric_bellard
    Replies:
    1
    Views:
    5,117
    CarlosRivera
    Oct 7, 2004
  2. Nico Grubert
    Replies:
    0
    Views:
    817
    Nico Grubert
    Oct 31, 2006
  3. Replies:
    2
    Views:
    371
    Matt Nordhoff
    Jul 7, 2008
  4. process
    Replies:
    1
    Views:
    1,201
    Robert Kern
    Oct 17, 2008
  5. Robert P. J. Day
    Replies:
    0
    Views:
    222
    Robert P. J. Day
    Jan 19, 2010
Loading...

Share This Page