无法加载Subversion python绑定 [英] Subversion python bindings could not be loaded

查看:119
本文介绍了无法加载Subversion python绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是尝试将SVN信息库转换为Mercurial信息库的第2部分的一部分

This is a but of a part 2 in trying to convert an SVN repository to a Mercurial one

命令是:

hg convert file://c:/svnrepository

但是,我得到的输出是:

but, the output I get is:

assuming destination svnrepository-hg
initializing destination svnrepository-hg repository
file://c:/svnrepository does not look like a CVS checkout
file://c:/svnrepository does not look like a Git repo
Subversion python bindings could not be loaded
file://c:/svnrepository is not a local Mercurial repo
file://c:/svnrepository does not look like a darcs repo
file://c:/svnrepository does not look like a monotone repo
file://c:/svnrepository does not look like a GNU Arch repo
file://c:/svnrepository does not look like a Bazaar repo
file://c:/svnrepository does not look like a P4 repo
abort: file://c:/svnrepository: missing or unsupported repository

我感兴趣的行是:

Subversion python bindings could not be loaded

我已经安装了python 2.5,并且已经从subversion网站安装了python subversion绑定.但是仍然出现此错误

I have installed python 2.5, and I have installed the python subversion bindings from the subversion website. But still getting this error

推荐答案

此处标题为从Subversion转换":

The problem's explained here at heading "Converting from Subversion":

Subversion的Python绑定是 先决条件.绑定(生成 (带有SWIG)分别安装在 Windows,可以在上找到 http://subversion.tigris.org/.笔记 Win32无法做到这一点 水星二进制文件-没办法 安装Subversion绑定 到其内置的Python库中.所以 您需要使用水银 安装在独立的顶部 Python,您可能还需要做 类似于"set HG = python c:\ Python25 \ Scripts \ hg来覆盖 默认的Win32二进制文件(如果有) 那些也安装了.对于Mac OS X, 最简单的方法是安装 建立CollabNet Subversion,然后 复制内容 /opt/subversion/lib/svn-python到 python的site-package目录 安装.

Subversion's Python bindings are a prerequisite. The bindings (generated with SWIG) are installed separately on Windows, and can be found on http://subversion.tigris.org/ . Note that you can't do this with the Win32 Mercurial binaries -- there's no way to install the Subversion bindings into its built-in Python library. So you'll need to use a Mercurial installed on top of a stand-alone Python, and you may also need to do something like "set HG=python c:\Python25\Scripts\hg" to override the default Win32 binaries if you have those installed also. For Mac OS X, the easiest way is to install the CollabNet Subversion build, and then copy the content of /opt/subversion/lib/svn-python to the site-package directory of the python installation.

不幸的是,使用 hgsubversion ,hg + svn + win似乎并没有变得更轻松,至少从这篇文章此讨论(我没有安装Windows尝试并叹息).

Unfortunately hg + svn + win doesn't apparently get any easier with hgsubversion, at least judging from this post and this discussion thereof (I have no Windows installed to try and help out, sigh).

这篇关于无法加载Subversion python绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆