Unhandled exception when using the dictionary lookup in E-book viewer

Bug #1842201 reported by Hank on 2019-09-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Since the update to 3.47 I cannot use the dictionary lookup in E-book viewer anymore.

calibre, version 3.47.0
ERROR: Unhandled exception: <b>AttributeError</b>:'unicode' object has no attribute 'scheme'

calibre 3.47 embedded-python: True is64bit: False
Windows-10-10.0.18362-SP0 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '10', '10.0.18362')
Python 2.7.15+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: View Manager (1, 4, 3) && Count Pages (1, 8, 2) && EpubMerge (2, 5, 0)
Traceback (most recent call last):
  File "site-packages\calibre\gui2\viewer\documentview.py", line 792, in lookup
  File "site-packages\calibre\gui2\viewer\main.py", line 436, in lookup
  File "site-packages\calibre\gui2\__init__.py", line 1148, in safe_open_url
AttributeError: 'unicode' object has no attribute 'scheme'

For test purposes I set Wikipedia as dictionary:
https://en.wikipedia.org/wiki/{word}

This affects both the installed and portable version (from portableapps.com).

renato1976 (renato-laus) wrote :

I get the same (or very similar) error message when trying to look up some book info (e.g. author or title) by right-clicking in Book Details view.

  File "site-packages/calibre/gui2/book_details.py", line 867, in search_internet
  File "site-packages/calibre/gui2/__init__.py", line 1148, in safe_open_url
AttributeError: 'unicode' object has no attribute 'scheme'

Update to calibre 3.47.1 and you will be fine.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers