From: Brian Ellis [mailto:bel...@ticketbiscuit.com] Sent: Thursday, 17 February, 2011 1:28 AM To: Cooke, Mark Cc: Joel Low; users@subversion.apache.org Subject: Re: Python SVN Bindings on Windows Server 2008 x64
Joel, as far as I know I have it set up correctly. I have added VisualSvn\bin to my Windows Path environment variable and I can execute svn from anywhere on the command line with no problems. [JL] Hey Brian, As I've mentioned, the usual gotcha is that hook scripts run without environment variables, even PATH is set empty. An explicit path needs to be set. Mark, I tried the trick with renaming the .pyd -> .dll files and had no luck with it. I did not restart the server though. I can try again and reboot the server later today. ____________________________________ Brian Ellis TicketBiscuit, LLC 415.602.6230 (mobile) 205.259.2300 (office) 205.985.6160 (fax) Email: bel...@ticketbiscuit.com www.ticketbiscuit.com On Wed, Feb 16, 2011 at 3:55 AM, Cooke, Mark <mark.co...@siemens.com> wrote: > From: Brian Ellis [mailto:bel...@ticketbiscuit.com] > Sent: Wednesday, 16 February, 2011 3:40 AM > To: users@subversion.apache.org > Subject: Python SVN Bindings on Windows Server 2008 x64 > > Hi, sorry if this has been covered before but I'm new to > Subversion admin and can't really find a clear answer. My > goal is to use the python scripts in subversion\tools, > specifically validate-extensions.py in this case. I am > running VisualSVN Server 2.15, built on Subversion 1.6.15 and > have 32-bit Python 2.7.1 set up on the machine at the moment. > > When I set up the hook, I got an error that the svn module > could not be found. I installed the latest libsvn bindings I > could find > (http://trac.edgewall.org/attachment/wiki/TracSubversion/svn-w <http://trac.edgewall.org/attachment/wiki/TracSubversion/svn-w%0Ain32-1.6.15 _py_2.7.zip> in32-1.6.15_py_2.7.zip from http://trac.edgewall.org/wiki/TracSubversion) > but I still can't load the svn module. If I run 'from svn > import repos' from the command line, I get: > > File "C:\Python27\lib\site-packages\libsvn\core.py", line 21, > in swig_import_helper > _mod = imp.load_module('_core', fp, pathname, description) > ImportError: DLL load failed: The specified procedure could > not be found. > > > Am I missing something? I also tried the Python27 64-bit > release but precompiled svn bindings don't appear to be > available for it and I would prefer not to go through > everything required to build them myself. > > Thank you in advance for your help. > > Brian Ellis > > -----Original Message----- > From: Joel Low [mailto:j...@joelsplace.sg] > Sent: 16 February 2011 00:11 > To: Brian Ellis > Cc: users@subversion.apache.org > Subject: RE: Python SVN Bindings on Windows Server 2008 x64 > > [JL] Hi Brian, you can try to check if the SVN DLLs are > accessible from your 32-bit Python (so 32-bit SVN DLLs, > Program Files (x86) folder, etc), perhaps by ensuring that > the Subversion bin directory is in PATH. Remember that hook > scripts are run without environment variables defined so you > may have to redefine PATH in your hook script. > Hi Brian, Here are some notes I made for myself about upgrading the bindings when I upgrade Trac: ~ deleted the old svn and libsvn directories from C:\Python26\Lib\site-packages ~ opened the python bindings .zip and copied the two directories to site-packages ~ copied all libsvn\_*.dll files to _*.pyd [1] ~ restarted the server and crossed fingers... [1] I found this recommended in the t.e.o wiki at TracSubversion... http://trac.edgewall.org/wiki/TracSubversion#forPython2.6 ...in particular have you copied/renamed the .dll files? Hope this helps... ~ Mark C
smime.p7s
Description: S/MIME cryptographic signature