0

尝试使用pysvn时出现此错误:

/usr/bin/python /Users/keith/Dev/Python/svntool.py 
Traceback (most recent call last):
File "/Users/keith/Dev/Python/svntool.py", line 8, in <module>
    import pysvn   File "/Users/keith/pysvn/__init__.py", line 99, in <module>
    import pysvn._pysvn_3_3 ImportError: dynamic module does not define init function (init_pysvn_3_3)

 Process finished with exit code 1

我的代码如下所示:

#!/usr/bin/env python3.3

import pysvn


def get_books(srcUrl, tgtPath):
    client = pysvn.Client()
    client.checkout(srcUrl, tgtPath)


def set_login(setCache=True, setInteractive=True, uid='', pwd=''):
    client = pysvn.Client()
    client.set_auth_cache(setCache)
    client.set_interactive(setInteractive)
    client.set_default_username(uid)
    client.set_default_password(pwd)


if __name__ == "__main__":
    set_login(True, True, '******', '******')
    #write_temp()
    get_books('https://free2.projectlocker.com/******/svn/MyProject/', './examples/pysvn')

考虑到我昨天开始学习 Python。在此之前从未看过它。:)

我的 google-fu 让我失望了,我也没有在 SO 上找到任何东西。任何想法:

  1. 这个错误是什么意思?
  2. 我如何解决它?
4

0 回答 0