logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [Fwd: "import svn.repos" not working]: msg#00094

Subject: Re: [Fwd: "import svn.repos" not working]
Ionut Scutaru wrote:
> Sorry for the HTML tags ... I'm sending the message again:
> ---------
> Hi all,
> I know this question have been asked before, but none of the answers
> solved my problem.. Can you help me, please ?
> 
> When I try to import the svn.repos, I get the following result:

Right.  Python is saying, "I can't import a module named svn.repos because I
can't find such a module."  Possible reasons:

   * You never installed the Subversion Python bindings
   * You installed them, but not in a location that Python knows to look in

> Probably I'm missing the Subversion Python bindings, but I thought I
> installed them. Aren't them usually located in
> //usr/local/lib/svn-python/libsvn/ ? Cause I added this folder to
> /etc/ld.so.conf and then I've run ldconfig, but nothing..

Ah.  So there's the answer.  Python doesn't do the whole /etc/ld.so.conf
thing.  I mean, it needs to recognize system library paths like that so any
compiled modules get proper linking and such, but in terms of just finding
modules, there's another set of places Python looks.  To see them for your
system, do this:

   $ python
   Python 2.3.4 (#1, Feb  2 2005, 12:11:53)
   [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
   Type "help", "copyright", "credits" or "license" for more information.
   >>> import sys
   >>> sys.path
   ['', '/usr/lib/python23.zip', '/usr/lib/python2.3',
'/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk',
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/gtk-2.0']
   >>>

So, the trick I recommend to folks is that they visit
/usr/lib/python[VERSION]/site-packages, and in that directory, do:

   $ ln -s /usr/local/lib/svn-python/svn ./svn
   $ ln -s /usr/local/lib/svn-python/libsvn ./libsvn

-- 
C. Michael Pilato <cmpilato@xxxxxxxxxx>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Attachment: signature.asc
Description: OpenPGP digital signature

Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe