#997797 virtaal: Unable to open files

Package:
virtaal
Source:
virtaal
Submitter:
Markus Hiereth
Date:
2024-02-26 18:33:50 UTC
Severity:
important
Tags:
#997797#5
Date:
2021-10-24 17:25:17 UTC
From:
To:
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

#997797#14
Date:
2022-03-16 07:00:39 UTC
From:
To:
Reported bug report on Github's Virtaal issues database:
https://github.com/translate/virtaal/issues/3330

friedelwolff says:
"It looks as if the Debian package is installed to work with Python 3.
The released version of Virtaal does not work with Python 3 (only Python
2). Much work has been done to port it to Python 3, but no official
release for Python 3 is available yet."

#997797#19
Date:
2024-02-26 18:33:08 UTC
From:
To:
Dear submitter,

as the package virtaal has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1064180

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)