-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load plugin in f22 with Chinese locale #32
Comments
Reported here in Bugzilla: |
Another traceback related to Chinese locale:
The user says:
https://fedoramagazine.org/upgrading-from-fedora-22-to-fedora-23/#comment-449918 |
Also affects ja_JP.utf8 and de_DE.utf8, so possibly all languages which use more than 7-bit ASCII characters. |
It looks like (at least part of) this is a problem in upstream DNF - see rpm-software-management/dnf#375 for more info. PR #34 technically fixes the problem but since |
It is also here |
PR #38 fixed both manifestations of our py2 unicode problems, if you have dnf-1.1.4. Unfortunately, Fedora 21 and Fedora 22 don't have that, so we need to backport its `dnf.i18n.translate()` function so we can do translations without crashing all over the place. This re-fixes rhbz#1278031, #32, and #34 (We reverted the original fix in commit 3fbcb9b so we could do this correctly here.) Closes #38, closes #32 (again), closes #34 (again). Resolves: rhbz#1277895 Resolves: rhbz#1278031
Hi, my language environment is zh_CN.utf8, with using the latest version 0.7.0-1 in dnf
I will got
Traceback (most recent call last):
File "/bin/dnf", line 36, in
main.user_main(sys.argv[1:], exit_code=True)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 198, in user_main
errcode = main(args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
return _main(base, args)
File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 117, in _main
cli.configure(map(ucd, args))
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1006, in configure
self.base.plugins.run_init(self.base, self)
File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 104, in run_init
plugin = p_cls(base, cli)
File "/usr/lib/python2.7/site-packages/dnf-plugins/system_upgrade.py", line 359, in init
super(SystemUpgradePlugin, self).init(base, cli)
TypeError: must be type, not None
But if I use the LANG=C, it would work
The text was updated successfully, but these errors were encountered: