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

Compiled Python hookscript error: "terminate it in an unusual way"

From: x nooby <xnooby_at_yahoo.com>
Date: 2005-10-04 16:54:48 CEST

I have the Python script "check-case-insensitive"
working. Now I am trying to compile it with the
py2exe compiler. I get an error when I try to commit
when the hookscript calls the compiled script's
executable. I think a clue is that when I build the
executable ("invoking py2exe"), I get a warning that a
module ("svn") appears to be missing. I'm trying to
run this on the machine that built the exe, so I am
assuming all the dll dependencies are being met.

Any suggestions? I don't know much about Python.

====================================================
setup.py:
----------------------------------------------------
# setup.py
from distutils.core import setup
import py2exe

setup(console=["check-case-insensitive.py"],
zipfile=None)
====================================================

====================================================
invoke py2exe:
----------------------------------------------------
E:\svnrepo\hooks>python setup.py py2exe -b 1

copying c:\python23\lib\site-packages\py2exe\run.exe
-> E:\svnrepo\hooks\dist\ch
eck-case-insensitive.exe
Adding python23.dll as resource to
E:\svnrepo\hooks\dist\check-case-insensitive.
exe
The following modules appear to be missing
['svn']

*** binary dependencies ***
Your executable(s) also depend on these dlls which are
not included,
you may or may not need to distribute them.

Make sure you have the license if you distribute any
of them, and
make sure you don't distribute files belonging to the
operating system.

        ADVAPI32.dll -
C:\WINDOWS\system32\ADVAPI32.dll
        USER32.dll - C:\WINDOWS\system32\USER32.dll
        SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
        KERNEL32.dll -
C:\WINDOWS\system32\KERNEL32.dll
        MSVCRT.dll - C:\WINDOWS\system32\MSVCRT.dll

E:\svnrepo\hooks>
====================================================

====================================================
pre-commit.bat
----------------------------------------------------
REM c:\python23\python
e:\svnrepo\hooks\check-case-insensitive.py %1 %2
e:\svnrepo\hooks\check-case-insensitive.exe %1 %2
if errorlevel 1 goto :ERROR
exit 0
:ERROR
echo Error found in commit 1>&2
exit 1
====================================================

====================================================
testing a commit
----------------------------------------------------

E:\svntesting\acme\sales>svn ci SALE2.CPP -m "upper"
Adding SALE2.CPP
Transmitting file data .svn: Commit failed (details
follow):
svn: 'pre-commit' hook failed with error output:

This application has requested the Runtime to
terminate it in an unusual way.
Please contact the application's support team for more
information.
Fatal Python error: Interpreter not initialized
(version mismatch?)
Error found in commit

====================================================

                
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 4 16:58:33 2005

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.