Virtaal is broken out-of-the-box on Ubuntu 20.04 LTS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virtaal (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Virtaal is totally broken and cannot be used to modify .po files on Ubuntu 20.04 LTS.
The biggest problem seems to be missing following line in /usr/lib/
from functools import reduce
This line is needed before reduce() is used because Guido van van Rossum didn't like it and forced to move it to another namespace.
Even if that's fixed, there are so many other problems that Virtaal cannot be used to actually modify .po files in practice. If you open it in a terminal and look at the terminal output, you'll surely see it.
Some examples:
NameError: name 'reduce' is not defined
/usr/lib/
return _Gtk_main(*args, **kwargs)
/usr/lib/
Gtk.main_
ERROR:root:Failed to start TM server
Traceback (most recent call last):
File "/usr/lib/
self.tmserver = subprocess.
File "/usr/lib/
self.
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'tmserver'
ERROR:root:Failed to load plugin "localtm"
[Errno 2] No such file or directory: 'tmserver'
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.tmserver = subprocess.
File "/usr/lib/
self.
File "/usr/lib/
raise child_exception
FileNotFoundError: [Errno 2] No such file or directory: 'tmserver'
I guess it's an improvement compared to Ubuntu 18.04 LTS where Virtaal didn't even start at all but having this kind of broken package in Ubuntu is no good.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: virtaal 0.7.1+git201910
ProcVersionSign
Uname: Linux 5.15.0-
NonfreeKernelMo
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: MATE
Date: Wed Jan 25 16:53:53 2023
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-01-05 (1480 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitec
SourcePackage: virtaal
UpgradeStatus: Upgraded to focal on 2022-09-13 (133 days ago)
modified.
mtime.conffile.
This broken with Ubuntu 22.04 LTS, too. This time the failure happens here:
ERROR:root: MainController. open_file( filename= "locale/ fi.po", uri="") python3/ dist-packages/ virtaal/ controllers/ maincontroller. py", line 210, in open_file store_controlle r.open_ file(filename, uri, forget_ dir=forget_ dir) python3/ dist-packages/ virtaal/ controllers/ storecontroller .py", line 227, in open_file filename, self) python3/ dist-packages/ virtaal/ models/ storemodel. py", line 62, in __init__ load_file( fileobj) python3/ dist-packages/ virtaal/ models/ storemodel. py", line 149, in load_file update_ stats(filename= filename) python3/ dist-packages/ virtaal/ models/ storemodel. py", line 172, in update_stats python3/ dist-packages/ translate/ storage/ __init_ _.py) python3/ dist-packages/ virtaal/ controllers/ plugincontrolle r.py", line 115, in enable_plugin plugin_ class(name) python3/ dist-packages/ virtaal/ controllers/ plugincontrolle r.py", line 188, in _get_plugin_class
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.store = StoreModel(
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
from translate.storage import statsdb
ImportError: cannot import name 'statsdb' from 'translate.storage' (/usr/lib/
ERROR:root:Failed to load plugin "migration"
Could not find plug-in "migration"
Traceback (most recent call last):
File "/usr/lib/
plugin_class = self._get_
File "/usr/lib/
raise Exception('Could not find plug-in "%s"' % (name))
Exception: Could not find plug-in "migration"
ERROR:root:Failed to load plugin "tm"
Could not find plug-in "tm"
If the maintainer cannot bother to even try opening a single .po file to do minimum level of QA before release, maybe the package should be removed for good?