openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #05778
[Bug 706207] [NEW] New Web Bible download call relies on ASCII addresses
Public bug reported:
This happens by downloading texts from the 'Neue Genfer Übersetzung'
from Bibleserver. The URL contains '/NGÜ/'.
Traceback (most recent call last):
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py", line 558, in onQuickSearchButton
self.search_results = self.parent.manager.get_verses(bible, text)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py", line 271, in get_verses
return self.db_cache[bible].get_verses(reflist)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 446, in get_verses
search_results = self.get_chapter(book, reference[1])
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 475, in get_chapter
return handler.get_bible_chapter(self.download_name, book, chapter)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 270, in get_bible_chapter
soup = get_soup_for_bible_ref(chapter_url, header)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 517, in get_soup_for_bible_ref
page = get_web_page(reference_url, header, True)
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/utils/__init__.py", line 329, in get_web_page
page = urllib2.urlopen(req)
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1170, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1142, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.6/httplib.py", line 914, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
self.endheaders()
File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 759, in send
self.sock.sendall(str)
File "<string>", line 1, in sendall
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 12: ordinal not in range(128)
** Affects: openlp
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/706207
Title:
New Web Bible download call relies on ASCII addresses
Status in OpenLP - Worship Presentation Software:
New
Bug description:
This happens by downloading texts from the 'Neue Genfer Übersetzung'
from Bibleserver. The URL contains '/NGÜ/'.
Traceback (most recent call last):
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/mediaitem.py", line 558, in onQuickSearchButton
self.search_results = self.parent.manager.get_verses(bible, text)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/manager.py", line 271, in get_verses
return self.db_cache[bible].get_verses(reflist)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 446, in get_verses
search_results = self.get_chapter(book, reference[1])
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 475, in get_chapter
return handler.get_bible_chapter(self.download_name, book, chapter)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 270, in get_bible_chapter
soup = get_soup_for_bible_ref(chapter_url, header)
File "/home/meinert/Qt/OpenLP/trunk/openlp/plugins/bibles/lib/http.py", line 517, in get_soup_for_bible_ref
page = get_web_page(reference_url, header, True)
File "/home/meinert/Qt/OpenLP/trunk/openlp/core/utils/__init__.py", line 329, in get_web_page
page = urllib2.urlopen(req)
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/usr/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 1170, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.6/urllib2.py", line 1142, in do_open
h.request(req.get_method(), req.get_selector(), req.data, headers)
File "/usr/lib/python2.6/httplib.py", line 914, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.6/httplib.py", line 951, in _send_request
self.endheaders()
File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 759, in send
self.sock.sendall(str)
File "<string>", line 1, in sendall
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdc' in position 12: ordinal not in range(128)
Follow ups
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Armin Köhler, 2011-05-29
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Armin Köhler, 2011-05-18
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Andreas Preikschat, 2011-04-20
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Jon Tibble, 2011-01-25
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Jon Tibble, 2011-01-23
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Tim Bentley, 2011-01-22
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Andreas Preikschat, 2011-01-22
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Andreas Preikschat, 2011-01-22
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: m2j, 2011-01-22
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Tim Bentley, 2011-01-22
-
[Bug 706207] Re: New Web Bible download call relies on ASCII addresses
From: Andreas Preikschat, 2011-01-22
-
[Bug 706207] [NEW] New Web Bible download call relies on ASCII addresses
From: m2j, 2011-01-22
References