在主要导入列表之后的文件 mailer.py 中,您会发现错误消息的两个原因 1) 无法导入 svn.core,或 2) svn.core 中的版本号太低。svn.core 可以在Python-3.1.3/Lib/distutils/core.py中找到
# Minimal version of Subversion's bindings required
_MIN_SVN_VERSION = [1, 5, 0]
# Import the Subversion Python bindings, making sure they meet our
# minimum version requirements.
try:
import svn.fs
import svn.delta
import svn.repos
import svn.core
except ImportError:
sys.stderr.write(
"You need version %s or better of the Subversion Python bindings.\n" \
% string.join(map(lambda x: str(x), _MIN_SVN_VERSION), '.'))
sys.exit(1)
if _MIN_SVN_VERSION > [svn.core.SVN_VER_MAJOR,
svn.core.SVN_VER_MINOR,
svn.core.SVN_VER_PATCH]:
sys.stderr.write(
"You need version %s or better of the Subversion Python bindings.\n" \
% string.join(map(lambda x: str(x), _MIN_SVN_VERSION), '.'))
sys.exit(1)