Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891333
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:23:49+00:00 2026-05-27T06:23:49+00:00

I’m new in the Python world, coming from PHP. So, this question may sound

  • 0

I’m new in the Python world, coming from PHP. So, this question may sound silly for experienced Python developers, but I’m really confused.

So, I want to implement simple Python app to work with subversion. For that purpose I want to use python bindings for subversion, so I installed Ubuntu python-subversion and python-subversion-dbg packages.

$ ll /usr/lib/pyshared/python2.6/libsvn
total 6460
drwxr-xr-x  2 root root    4096 2011-12-03 17:01 ./
drwxr-xr-x 23 root root    4096 2011-12-03 09:47 ../
-rw-r--r--  1 root root  790331 2011-08-05 19:59 _client_d.so
-rw-r--r--  1 root root  320844 2011-08-05 20:00 _client.so
-rw-r--r--  1 root root  900465 2011-08-05 19:59 _core_d.so
-rw-r--r--  1 root root  379804 2011-08-05 20:00 _core.so
-rw-r--r--  1 root root  300336 2011-08-05 19:59 _delta_d.so
-rw-r--r--  1 root root  115932 2011-08-05 20:00 _delta.so
-rw-r--r--  1 root root  228879 2011-08-05 19:59 _diff_d.so
-rw-r--r--  1 root root   89532 2011-08-05 20:00 _diff.so
-rw-r--r--  1 root root  345484 2011-08-05 19:59 _fs_d.so
-rw-r--r--  1 root root  137400 2011-08-05 20:00 _fs.so
-rw-r--r--  1 root root  582390 2011-08-05 19:59 _ra_d.so
-rw-r--r--  1 root root  231864 2011-08-05 20:00 _ra.so
-rw-r--r--  1 root root  491500 2011-08-05 19:59 _repos_d.so
-rw-r--r--  1 root root  196668 2011-08-05 20:00 _repos.so
-rw-r--r--  1 root root 1038898 2011-08-05 19:59 _wc_d.so
-rw-r--r--  1 root root  426008 2011-08-05 20:00 _wc.so

I tried to add /usr/lib/pyshared/python2.6/libsvn as library in Eclipse from PyDev > Interpreter Python > Libraries > New Folder. But I still can’t import anything from svn package. I also see that there are no .py files, just .so.

I just want to be able to use it like on http://svnbook.red-bean.com/en/1.1/ch08s02.html

My code:

from svn import fs

Erro I get:

File "/home/umpirsky/EclipseWorkspace/test/src/test.py", line 1, in <module> ImportError: cannot import name fs

How can I import this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:23:49+00:00Added an answer on May 27, 2026 at 6:23 am

    I remember installing this a while ago. Did you follow all the step of the?
    The ones that you have to get right are:

    • cd Source
    • Create the Makefile using ‘python setup.py configure’
    • make
    • cd Tests
    • Test pysvn by running make

    If that runs you know you are ok with the build. Then install pysvn by copying the following from Extension/Source to python site-specific directory.

    mkdir python-libdir/site-packages/pysvn
    cp pysvn/__init__.py python-libdir/site-packages/pysvn   
    cp pysvn/_pysvn*.so python-libdir/site-packages/pysvn
    

    By default you site-packages should be under: /usr/local/lib/pythonX.Y/site-packages

    Once you’ve copied that, on Eclipse:

    Window->Preferences->Pydev->Interpreter Python

    Under System PYTHONPATH add the folder you created above.

    I’ve found that sometimes Pydev won’t pick the new source folder for whatever reason. So, I just remove the compiler and add it again. When you do that Pydev will pick everything up under site-packages.

    Edit:
    Here are the download instructions of what you need. I thought you had downloaded the same package as python-svn. I actually haven’t use the distribution you downloaded. But I think pysvn will do the trick for you and it has good documentation if you are just starting.

    The install guide should get you going with the install. If you get lost with it refer to the notes that I have above.

    site-package is just the standard location for python installed modules.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.