[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] "fixing" python-2.5 libsvn installation problems (import _fs error + libsvn_fs-1.dll not found)

From: treborsedandesetcetirihr <trebor74hr_at_yahoo.com>
Date: Fri, 25 Jul 2008 02:32:38 -0700 (PDT)

Hi,

I'm running svn 1.5 on win32 system, and wanted to enable trac (trac.edgewall.org) on python 25 to use new svn. So I installed py bindings like this:
 - from http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 - downloaded http://subversion.tigris.org/files/documents/15/43068/svn-win32-1.5.0_py25.zip
 - unzip it - copy libsvn / svn dirs to python25\site-packages directory

Trac reported error (reproduced like this - i have german OS):
[[[
>>> from svn import fs, repos, core, delta
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "D:\DRIVES_SHARED\DRIVE_Z\env-lib\PYTHON25\lib\site-packages\svn\fs.py", line 19, in <module>
        from libsvn.fs import *
      File "D:\DRIVES_SHARED\DRIVE_Z\env-lib\PYTHON25\lib\site-packages\libsvn\fs.py", line 5, in <module>
        import _fs
        ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden. (i.e. dll not found)
]]]

I renamed from .dll to .pyd in libsvn directory:
        _client.pyd
        _core.pyd
        _delta.pyd
        _diff.pyd
        _fs.pyd
        _ra.pyd
        _repos.pyd
        _wc.pyd

After this - all ok:
[[[
>>> from svn import fs, repos, core, delta
   
>>>
]]]

Then trac reported next error - msg box:
[[[
    ---------------------------
    python.exe - Komponente nicht gefunden
    ---------------------------
    Die Anwendung konnte nicht gestartet werden, weil libsvn_fs-1.dll nicht gefunden wurde. Neuinstallation der Anwendung könnte das Problem beheben.
       i.e. libsvn_fs-1.dll NOT FOUND
    ---------------------------
    OK
    ---------------------------
]]]

So I copied *.dll from bin dir of svn 1.5 installation:
        copy ...svn-1.5.0\bin\*.dll ...\Python25\Lib\site-packages\libsvn
Listing is:
        intl3_svn.dll
        libapr-1.dll
        libapriconv-1.dll
        libaprutil-1.dll
        libdb44.dll
        libeay32.dll
        libsasl.dll
        libsvn_client-1.dll
        libsvn_delta-1.dll
        libsvn_diff-1.dll
        libsvn_fs-1.dll
        libsvn_ra-1.dll
        libsvn_repos-1.dll
        libsvn_subr-1.dll
        libsvn_wc-1.dll
        ssleay32.dll

After this everything was OK.

      

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-26 06:36:41 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.