Mozilla Raindrop fails tests on Ubuntu with "exceptions.TypeError: url must be str, not unicode"

0

How can I fix this problem?

I ran the tests ./test-raindrop.py and all failed with the same error:

    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

Any help appreciated

Stuart Woodward

Posted 2009-10-27T11:09:29.617

Reputation: 374

2

May I suggest that you report this problem directly to Mozilla? I've looked around, I'm not sure, but I think this is the Tracker of the Project: http://getsatisfaction.com/mozilla_messaging/products/mozilla_raindrop

– Bobby – 2009-10-27T13:49:30.320

Raindrop is still under development, there is no stable version even. As such, you should see indeed with Mozilla directly for any problem, like Bobby suggested. A problem on a version in early stage of development is most likely to be fixed on their side, not yours. – Gnoupi – 2009-10-27T14:58:44.887

Yes is it is in development. I had to install both Erlang and CouchDB from source before I could get to the error above.

Actually, I read in the RainDrop docs that the team were accepting questions on StackOverflow and I noticed that a question about Raindrop had been forwarded over to here.

Thanks very much to tayfun for his helpful comment below.. – Stuart Woodward – 2009-10-28T09:55:50.830

Answers

1

This has already been fixed. See the discussion at getsatisfaction: http://getsatisfaction.com/mozilla_messaging/topics/twisted_errors_on_run_raindrop_py

You basically need to update your raindrop codebase. If you installed using mercurial, change into the root directory of source code and do a "hg pull" followed by an "hg update". That should fix it.

tayfun

Posted 2009-10-27T11:09:29.617

Reputation: 126