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

RE: Problem with Python bindings to SVN 1.7.4 on Windows

From: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Wed, 21 Mar 2012 17:01:42 +0000

> -----Original Message-----
> From: Brian Neal [mailto:bgneal_at_gmail.com]
> Sent: 21 March 2012 16:13
> To: users_at_subversion.apache.org
> Subject: Problem with Python bindings to SVN 1.7.4 on Windows
>
> Hello -
>
> I'm trying to upgrade a Subversion and Trac install running on Windows
> Server 2003 sp2.
>
> I've installed Subversion 1.7.4 from the .msi file found here:
> http://sourceforge.net/projects/win32svn/files/1.7.4/
>
> I'm also using the Python 2.7 bindings found in that same directory
> (svn-win32-1.7.4_py27.zip).
>
> I've unzipped the Python binding into C:\Python27\Lib\site-packages.
>
> Trac isn't able to load the bindings.
>
> Here is a troubleshooting step and the output:
>
> E:\Trac_Data>python
> Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32
> bit (Intel)] on win
> 32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from svn import client
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "C:\Python27\lib\site-packages\svn\client.py", line
> 26, in <module>
> from libsvn.client import *
> File "C:\Python27\lib\site-packages\libsvn\client.py", line
> 25, in <module>
> _client = swig_import_helper()
> File "C:\Python27\lib\site-packages\libsvn\client.py", line
> 21, in swig_import
> _helper
> _mod = imp.load_module('_client', fp, pathname, description)
> ImportError: DLL load failed: The operating system cannot run %1
>
> Does anyone have any ideas? I noticed there are no DLL files in the
> libsvn folder in the bindings. In the past, with older versions of
> Subversion, I've had to rename the libsvn/*.dll files to *.pyd to get
> stuff to work. Now there is just *.pyd files in libsvn.
>
> Thank you,
> BN
>
I'm sure something similar came up last week, did you check the list archive? There was something about two files being missing in a similar scenario...

Also, have you tried copying *.pyd to *.dll to see if having both helps? My understanding is recent versions of python (certainly 2.7) will only load .PYDs but something else might need .DLLs (I'm guessing here). I seem to remember that with 2.6 I needed both.

~ mark c
Received on 2012-03-21 18:02:20 CET

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

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