Dear Maintainer,
after an upgrade from Debian 10 Buster to Debian 11 Bullseye Virtaal has
become unusable.
Using the menu point "/File/Open" does not yield the file selection window.
Clicking on the link to previously used files yields an error message on
the desktop and via console:
ERROR:root:MainController.open_file(filename="/home/hiereth/l10n/shadow/shadow_1:4.8.1-1_de.po", uri="")
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/controllers/maincontroller.py", line 210, in open_file
self.store_controller.open_file(filename, uri, forget_dir=forget_dir)
File "/usr/lib/python3/dist-packages/virtaal/controllers/storecontroller.py", line 227, in open_file
self.store = StoreModel(filename, self)
File "/usr/lib/python3/dist-packages/virtaal/models/storemodel.py", line 62, in __init__
self.load_file(fileobj)
File "/usr/lib/python3/dist-packages/virtaal/models/storemodel.py", line 149, in load_file
self.update_stats(filename=filename)
File "/usr/lib/python3/dist-packages/virtaal/models/storemodel.py", line 172, in update_stats
from translate.storage import statsdb
ImportError: cannot import name 'statsdb' from 'translate.storage' (/usr/lib/python3/dist-packages/translate/storage/__init__.py)
The programme starts with these error messages,
hiereth@lune:~$ virtaal
ERROR:root:Failed to load plugin "tm"
Could not find plug-in "tm"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/controllers/plugincontroller.py",
line 115, in enable_plugin
plugin_class = self._get_plugin_class(name)
File "/usr/lib/python3/dist-packages/virtaal/controllers/plugincontroller.py",
line 188, in _get_plugin_class
raise Exception('Could not find plug-in "%s"' % (name))
Exception: Could not find plug-in "tm"
ERROR:root:Failed to load plugin "spellchecker"
No module named 'gtkspell'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/controllers/plugincontroller.py",
line 117, in enable_plugin
self.plugins[name] = plugin_class(name, self.controller)
File "/usr/lib/python3/dist-packages/virtaal/plugins/spellchecker.py", line 70
, in __init__
import gtkspell
ModuleNotFoundError: No module named 'gtkspell'
ERROR:root:Failed to load plugin "opentran"
Could not find plug-in "opentran"
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/controllers/plugincontroller.py",
line 115, in enable_plugin
plugin_class = self._get_plugin_class(name)
File "/usr/lib/python3/dist-packages/virtaal/controllers/plugincontroller.py",
line 188, in _get_plugin_class
raise Exception('Could not find plug-in "%s"' % (name))
Exception: Could not find plug-in "opentran"
TypeError: string argument expected, got 'bytes'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/views/mainview.py", line 769, in _on_file_open
self.open_file()
File "/usr/lib/python3/dist-packages/virtaal/views/mainview.py", line 540, in open_file
filename_and_uri = self.show_open_dialog()
File "/usr/lib/python3/dist-packages/virtaal/views/mainview.py", line 604, in show_open_dialog
last_path = (pan_app.settings.general["lastdir"] or "").decode(sys.getdefaultencoding())
AttributeError: 'str' object has no attribute 'decode'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtaal/views/welcomescreenview.py", line 126, in _on_button_clicked
self.controller.open_file()
File "/usr/lib/python3/dist-packages/virtaal/controllers/welcomescreencontroller.py", line 70, in open_file
self.main_controller.open_file(filename)
File "/usr/lib/python3/dist-packages/virtaal/controllers/maincontroller.py", line 188, in open_file
return self.view.open_file()
File "/usr/lib/python3/dist-packages/virtaal/views/mainview.py", line 540, in open_file
filename_and_uri = self.show_open_dialog()
File "/usr/lib/python3/dist-packages/virtaal/views/mainview.py", line 604, in show_open_dialog
last_path = (pan_app.settings.general["lastdir"] or "").decode(sys.getdefaultencoding())
AttributeError: 'str' object has no attribute 'decode'
It seems the problem has already been reported to the developers of Virtaal:
7.6.2021:
I'm getting the same error on debian bullseye.
(auf https://github.com/translate/virtaal/issues/3323
Best regards
Markus