2009-11-01 43 views
20

これはMercurialの1SubversionのPythonバインディングは

コマンドにSVNリポジトリを変換しようとにおけるパート2のが、あるあるロードできませんでした:

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 WebサイトからPython Subversionバインディングをインストールしました。しかし、まだこのエラーを取得

+1

があるかをチェックするために、Pythonのコンソールから '輸入svn'を行うことができますその部分がすでに動作している場合。 SVNとPythonの両方のバージョンに対応するバインディングがインストールされていることを確認してください。 – RedGlyph

+0

私はMac OSで同じ問題を抱えています。致命的なPythonエラー:インタープリターが初期化されていない(バージョンが不一致) アボートトラップ ' – keflavich

+0

インストール方法については、[この回答を見る](http://stackoverflow.com/a/16950786/14558)を参照してください。 Mac OS上のバインディング – andrewdotn

答えて

14

さんは「Subversionのから変換」という見出しでhereを説明した問題:

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.

は残念ながらHG + SVN +勝利が明らかに少なくともthis postから判断し、hgsubversionで任意の容易に取得していないとthis discussion(私は試して助けてくれるためにWindowsがインストールされていない、ため息をついた)。

+1

ああ、それは複雑です。彼らはこれを簡単にしません!私はPythonの上に "Mercurialをビルドする"という意味を知らない。 – Paul

+5

以下による:https://www.mercurial-scm.org/pipermail/mercurial/2009-May/026015.html Subversionバインディングはtortoisehに含まれています。ですから、tortoisehの変換拡張機能を有効にするだけです。 – tonfa

+1

ああ!もう一つのステップ。私はMercurialの代わりにTortoiseHGのhgを指すように自分のパスを変更し、これがそのハードルを乗り越えました。今は、リポジトリがSVNのものだとは思わない、ああ! – Paul

4
sudo apt-get install python-subversion 

私はUbuntuでトリックしました。

+0

これは相違の世界を作りました – Vass

+0

質問はウィンドウ用です – CharlesB

21

私はアレックスマルテッリの答えへのコメントのうち、実際のソリューションを持って来たいと思った:

According to https://www.mercurial-scm.org/pipermail/mercurial/2009-May/026015.html the subversion bindings are included in tortoisehg. So you just need to enable the convert extension in tortoisehg. – tonfa

Ah ha! Another step forward. I changed my path to point at hg in TortoiseHG instead of Mercurial and this got over that hurdle. Now it just doesn't think the repository is an SVN one, ahh! – Paul

これは、同様に私のために働きました。

現在Windows上のHGの標準のコマンドラインバージョンを使用している場合は、具体的な手順は次のとおりです。

  • はTortoiseHgのをインストールし
  • 右クリックし、ファイル/ TortoiseHgの/グローバル設定... /拡張機能
    • WINKEY +一時停止/アドバンスト/環境変数/システム変数/パス
    • :/確認TortoiseHgのは、あなたのhgコマンドのパスであることを確認し
    • { "変換" をチェック}
    • REMOVEのC:\プログラムファイル\ Mercurialの
    • パスからは必ずCを作る:\プログラムファイル\ TortoiseHgには
+5

これを達成する別の方法は、hg実行可能ファイルへの完全なパスを使用するように思われます。だから、私の場合、これは "c:¥Program Files(x86)¥TortoiseHg¥hg.exe"となります。convert file:/// c:/ svn/repo_name – zoom23

+0

ここで役に立つポストをありがとう。 – jcollum

関連する問題