我在尝试使用 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失败了,我也没有找到任何东西。任何想法: