Package: virtaal
Version: 0.7.1+git20191021+ds1-2
Severity: important

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



-- System Information:
Debian Release: 11.1
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 5.10.0-9-686-pae (SMP w/1 CPU thread)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages virtaal depends on:
ii  gir1.2-gtk-3.0            3.24.24-4
ii  libjs-sphinxdoc           3.4.3-2
ii  python3                   3.9.2-3
ii  python3-diff-match-patch  20200713-1
ii  python3-gi                3.38.0-2
ii  python3-lxml              4.6.3+dfsg-0.1
ii  python3-pycurl            7.43.0.6-5
ii  python3-six               1.16.0-2
ii  python3-translate         3.3.2-1

Versions of packages virtaal recommends:
ii  libreoffice-common   1:7.0.4-4+deb11u1
ii  python3-cheroot      8.5.2+ds1-1
ii  python3-enchant      3.2.0-1
ii  python3-levenshtein  0.12.2-1
ii  python3-libproxy     0.4.17-1
ii  python3-psycopg2     2.8.6-2

virtaal suggests no packages.

-- no debconf information

Reply via email to