Mozilla Raindrop在Ubuntu上的测试失败,出现“ exceptions.TypeError:url必须为str,而不是unicode”


0

我该如何解决这个问题?

我运行了测试./test-raindrop.py,但均以相同的错误失败:

    Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/twisted/internet/defer.py", line 751, in _inlineCallbacks
    result = g.send(result)
  File "/home/stuartcw/Documents/Code/raindrop/server/python/raindrop/model.py", line 434, in _do_update_views
    _ = yield self.open_view(did, vn, limit=0)
  File "/home/stuartcw/Documents/Code/raindrop/server/python/raindrop/model.py", line 117, in open_view
    return self.db.openView(docId, viewId, *args, **kwargs)
  File "/home/stuartcw/Documents/Code/raindrop/server/python/raindrop/wetpaisley.py", line 111, in openView
    return requester(uri, *xtra
  File "/usr/local/lib/python2.6/dist-packages/paisley-0.1-py2.6.egg/paisley.py", line 286, in get
    return self._getPage(uri, method="GET")
  File "/home/stuartcw/Documents/Code/raindrop/server/python/raindrop/wetpaisley.py", line 74, in _getPage
    factory = HTTPClientFactory(url, **kwargs)
  File "/usr/lib/python2.6/dist-packages/twisted/web/client.py", line 258, in __init__
    self.setURL(url)
  File "/usr/lib/python2.6/dist-packages/twisted/web/client.py", line 269, in setURL
    scheme, host, port, path = _parse(url)
  File "/usr/lib/python2.6/dist-packages/twisted/web/client.py", line 415, in _parse
    parsed = http.urlparse(url)
  File "/usr/lib/python2.6/dist-packages/twisted/web/http.py", line 183, in urlparse
    raise TypeError("url must be str, not unicode")
exceptions.TypeError: url must be str, not unicode

任何帮助表示赞赏


2
我可以建议您直接向Mozilla报告此问题吗?我环顾四周,不确定,但是我认为这是项目的跟踪器:getsatisfaction.com/mozilla_messaging/products/mozilla_raindrop
Bobby,2009年

Raindrop仍在开发中,甚至没有稳定版本。因此,您确实应该直接从Mozilla看到任何问题,就像Bobby建议的那样。开发早期版本中的问题最有可能在他们自己而不是您自己的一方得到解决。
Gnoupi

是的,它正在开发中。我必须从源代码中同时安装Erlang和CouchDB,然后才能看到上面的错误。实际上,我在RainDrop文档中看到该团队正在接受有关StackOverflow的问题,并且我注意到有关Raindrop的问题已转发到此处。非常感谢塔伊丰低于..他有帮助的注释
斯图尔特伍德沃德

Answers:


1

此问题已得到解决。请参阅获取满意度的讨论:http ://getsatisfaction.com/mozilla_messaging/topics/twisted_errors_on_run_raindrop_py

基本上,您需要更新您的Raindrop代码库。如果您是使用mercurial安装的,请转到源代码的根目录并执行“ hg pull”,然后执行“ hg update”。那应该解决它。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.