SmugMug 的变化似乎已经炸毁了 pysmug
还有其他人在感恩节前一周在 SmugMug 上进行的更改,这些更改导致使用 pysmug 和 Django 时出现“无效用户”错误吗?
有人建议他们现在需要 _su cookie,但在我看来,pysmug 中使用的 pycurl 应该可以正确处理这个问题。
该错误不会在登录时发生,因此我假设错误消息“无效用户”是伪造的。
Anyone else wrestling with changes instituted at SmugMug the week before Thanksgiving that have resulted in "invalid user" errors when using pysmug and Django?
There's a suggestion that they are now requiring the presence of an _su cookie, but it seems to me pycurl used in pysmug ought to handle this properly.
The error does not occur on login, so I'm assuming the error message "invalid user" is bogus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于其他遇到 pysmug 问题的人,以下补丁解决了该问题:
pysmug 的 pycurl 实现未设置 cookie jar。要解决此问题,请将以下两行添加到 smugmug.py 的第 #143 行并重新安装:
您可能需要设置 cookies.txt 的绝对路径,以确保将其写入具有必要权限的文件夹,即 / tmp/
For anyone else having pysmug trouble the following patch fixed the issue:
pysmug's implementation of pycurl does not set a cookie jar. To fix the problem, add the following two lines to smugmug.py at line number #143 and reinstall:
You may want to set an absolute path to cookies.txt to make sure it's getting written to a folder with the necessary permissions, i.e. /tmp/