HudsonでMercurialを使う。
普通はプラグインを入れれば、使えるはずなのが、うちのサーバでは、ポーリングでエラーになってしまった。
started
[workspace] $ hg incoming --quiet --bundle hg.bundle --template "\n" {desc|escape} {file_adds|stringify|escape} {file_dels|stringify|escape} {files|stringify|escape} {parents}
abort: could not import module bz2!
ERROR: Failed to determine incoming changes
finished: FAILURE
どうも、Pythonのbz2モジュールが無いと言っているようだ。試しに、
import bz2
というファイルをfoo.pyで作って、python foo.pyすると、やはりエラーになる。
[shanai@mail tmp]$ python foo.py Traceback (most recent call last): File "foo.py", line 1, inimport bz2 ImportError: No module named bz2
どうもビルドした時にbzip2-develが存在しないと、bz2モジュールが生成されないらしい。bzip2 --helpでバージョンを確認すると、1.0.2だったので、ここから、rpmを拾ってインストール。再度Python-2.5.2を、configure/make clean/make/make installしたら、動くようになった。





