mercurial: "hg convert" cannot find `svn' python bindings

Joerg van den Hoff j.van_den_hoff at fzd.de
Sun Feb 22 09:15:19 PST 2009


On Mon, Feb 23, 2009 at 02:07:26AM +1100, Joshua Root wrote:
> Joerg van den Hoff wrote:
> > hi,
> > 
> > I'm running `hg' version 1.1.2 under macosX 10.4.11
> > and port v 1.7.
> > 
> > today I've installed `subversion-python25bindings'.
> > 
> > next I tried a `hg convert ssh://server/path_to_repo'.
> > (first try: not quite sure if the URL is correct or
> > needs a double `/' after server if it's an absolute
> > path...)
> > 
> > now I get the error message:
> > 
> > "Subversion python bindings could not be loaded"
> > 
> > although /opt/local/lib/svn-python25
> > 
> > is in place.
> > 
> > a ktrace' of the `hg convert' indicates that
> > `hg' is very well aware of svn-python25 location but
> > is trying in vain to locate files like:
> > 
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_socket"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_socket.so"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_socketmodule.so"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_socket.py"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_socket.pyc"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl.so"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_sslmodule.so"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl.py"
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl.pyc"
> > 
> > "/opt/local/lib/svn-python2.5/_ssl"
> > "/opt/local/lib/svn-python2.5/_ssl.so"
> > "/opt/local/lib/svn-python2.5/_sslmodule.so"
> > "/opt/local/lib/svn-python2.5/_ssl.py"
> > "/opt/local/lib/svn-python2.5/_ssl.pyc
> > 
> > am I missing something or is it a bug??
> 
> Looks like something needs to depend on 
> 
> - Josh

thanks for responding so quickly. I tried as advised (installed py25-socket-ssl)
more or less successful:

--->  Fetching py25-socket-ssl
--->  Verifying checksum(s) for py25-socket-ssl
--->  Extracting py25-socket-ssl
--->  Configuring py25-socket-ssl
--->  Building py25-socket-ssl
--->  Staging py25-socket-ssl into destroot
--->  Packaging tgz archive for py25-socket-ssl 2.5.4_0
--->  Installing py25-socket-ssl @2.5.4_0
--->  Activating py25-socket-ssl @2.5.4_0
--->  Cleaning py25-socket-ssl
--->  Fetching libiconv
--->  Attempting to fetch libiconv-1.12.tar.gz from ftp://ftp.lip6.fr/pub/gnu/libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Applying patches to libiconv
--->  Configuring libiconv
--->  Building libiconv
--->  Staging libiconv into destroot
--->  Packaging tgz archive for libiconv 1.12_2
--->  Deactivating libiconv @1.12_0
Error: Deactivating libiconv 1.12_0 failed: Active version of libiconv is not 1.12_0 but 1.12_0+darwin_8.
--->  Fetching gettext
--->  Attempting to fetch gettext-0.17.tar.gz from http://mirrors.kernel.org/gnu/gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
--->  Staging gettext into destroot
--->  Packaging tgz archive for gettext 0.17_4
--->  Deactivating gettext @0.17_3
--->  Installing gettext @0.17_4
--->  Activating gettext @0.17_4
--->  Cleaning gettext

(only thing I'm not sure of is,  whether the `libiconv' error is irrelevant?)

anyway, I now have a _ssl.so in

/opt/local/lib/python2.5/site-packages/_ssl.so

but `hg convert ...' (according to ktrace) now seemlingly looks only in

25045 Python   NAMI  "/opt/local/bin/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl.so"
25045 Python   NAMI "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_ssl.so"

for the _ssl.so file...
(strangely, `hg' no longer looks, e.g., in /opt/local/lib/svn-python2.5/_ssl.so as in
my first `ktrace' run!?)

so I'm still getting the

"Subversion python bindings could not be loaded"
message.

any more ideas? am I doing something stupid wrong? e.g., I'm not at all acquainted
with phyton, so must/can I define/modify the python library path?

greetings,

joerg


More information about the macports-users mailing list