我正在尝试使用Python和beatbox登录Salesforce,但我遇到了一些问题:
我的代码:
import beatbox
from beatbox import _tPartnerNS
print "Enter your login: "
mylogin = raw_input()
print "password: "
password = raw_input()
sf = beatbox._tPartnerNS
svc=beatbox.Client()
我收到错误ImportError: cannot import name _tPartnerNS
。如果我取出from beatbox import _tPartnerNS
行,则会收到错误AttributeError: 'module' object has no attribute '_tPartnerNS'