View Single Post
Old 12-17-2019, 06:23 AM   #4
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 946
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
I tried changing one of my plugins.

1) Got an error about translations when trying to add the plugin. Is this working as usual?
Spoiler:

calibre, version 4.99.0
ERRO: Exceção sem tratamento: <b>AttributeError</b>:'GNUTranslations' object has no attribute 'ungettext'

calibre 4.99 Portable 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 3.8.0
Windows: ('10', '10.0.18362', 'SP0', '')
Interface language: pt_BR
Traceback (most recent call last):
File "plugins.py", line 319, in add_plugin
File "ui.py", line 472, in add_plugin
File "ui.py", line 61, in load_plugin
File "zipplugin.py", line 202, in load
File "__init__.py", line 127, in import_module
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
File "<frozen importlib._bootstrap>", line 618, in _load_backward_compatible
File "zipplugin.py", line 184, in load_module
File "calibre_plugins.Skoob_Sync.__init__", line 10, in <module>
File "zipplugin.py", line 114, in load_translations
AttributeError: 'GNUTranslations' object has no attribute 'ungettext'


Removing 'load_translations' function let me install the plugin. But... I couldn't add it to the toolbar. So, I went to Preferences > Plugins and tried to configure it. Got a message saying I need to restart calibre after trying to configure it. I restarted calibre and even the computer, but got no luck.

Any hints?

Last edited by thiago.eec; 12-17-2019 at 07:04 AM.
thiago.eec is offline   Reply With Quote