我正试图找到一种方式,通过twitpic.com发布一张照片与推特。有一个叫做twitpic的python解决方案:https://github.com/macmichael01/python-twitpic
我已经在linux服务器上安装了它,但恐怕我对python并不熟悉。
用途: twitpic -h consumer_key consumer_secret access_token service_key文件
Python-TwitPic命令行实用程序。
然而,当我使用我的凭证时,它写着: twitpic -m bomengids .T7hDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxbb7c3d68acb6d9............./root/pics/1.jpg
回溯(最近一次调用):文件"/usr/local/bin/twitpic",第23行( service_key = opts.service_key ),File self.access_token = oauth.OAuthToken.from_string(access_token) "/usr/local/lib/python2.6/dist-packages/oauth/oauth.py",第142行,在from_string key =params‘'oauth_token’KeyError:‘oauth_token’中
这是什么意思?我如何解决这个问题?
发布于 2013-08-14 21:41:55
README.md文件(https://github.com/macmichael01/python-twitpic/blob/master/README.md)上写着“命令还需要python-2.7才能使用。”从回溯中我看到您使用PythonVersion2.6。这可能是问题所在。
https://stackoverflow.com/questions/18175767
复制相似问题