Bug 1095108 - ImportError: No module named i18n for plugins
Summary: ImportError: No module named i18n for plugins
Keywords:
Status: CLOSED DUPLICATE of bug 1094396
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 20
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-07 07:37 UTC by Igor Gnatenko
Modified: 2014-09-30 23:42 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-09 10:12:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Igor Gnatenko 2014-05-07 07:37:08 UTC
Description of problem:


Version-Release number of selected component (if applicable):
dnf-0.5.1-1.fc20.noarch
dnf-plugins-core-0.0.6-1.fc20.noarch

How reproducible:
100%

Steps to Reproduce:
1. any command with dnf

Actual results:
May 07 11:34:11 INFO --- logging initialized ---
May 07 11:34:11 DEBUG Config time: 0.037
May 07 11:34:11 DEBUG cachedir: /var/cache/dnf/x86_64/20
May 07 11:34:11 ERROR Failed loading plugin: debuginfo-install
May 07 11:34:11 SUBDEBUG 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 119, in import_modules
    module = importlib.import_module(name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/debuginfo-install.py", line 25, in <module>
    from dnf.yum.i18n import _
ImportError: No module named i18n
May 07 11:34:11 ERROR Failed loading plugin: kickstart
May 07 11:34:11 SUBDEBUG 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 119, in import_modules
    module = importlib.import_module(name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/kickstart.py", line 20, in <module>
    from dnf.yum.i18n import _
ImportError: No module named i18n
May 07 11:34:11 ERROR Failed loading plugin: copr
May 07 11:34:11 SUBDEBUG 
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dnf/plugin.py", line 119, in import_modules
    module = importlib.import_module(name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/site-packages/dnf-plugins/copr.py", line 25, in <module>
    from dnf.yum.i18n import _
ImportError: No module named i18n
May 07 11:34:11 DEBUG Loaded plugins: noroot, generate_completion_cache, builddep
May 07 11:34:11 DEBUG initialized Noroot plugin
May 07 11:34:11 DEBUG initialized BuildDep plugin
May 07 11:34:11 DEBUG dnf version: 0.5.1
May 07 11:34:11 SUBDEBUG Command: dnf copr search tests 
May 07 11:34:11 SUBDEBUG Installroot: /
May 07 11:34:11 CRITICAL No such command: copr. Please use /bin/dnf --help
May 07 11:34:11 DEBUG Cleaning up.

Expected results:
no trace. plugins loads OK

Additional info:

Comment 1 Tim Lauridsen 2014-05-07 10:22:11 UTC
There has been some changes in dnf and some plugins in dnf-plugins-core
used non-public API.
This is fixed in dnf-plugins-core-0.0.7, but it is only release in rawhide

check this comment for install instruction
https://bugzilla.redhat.com/show_bug.cgi?id=1094396#c1

Comment 2 Ales Kozumplik 2014-05-09 08:54:06 UTC
Right, we'll need a new plugins build for f20 when 0.5.2 comes out. Thanks for the report.

Comment 3 Ales Kozumplik 2014-05-09 10:12:19 UTC
Ah, just realized this is a dupe.

*** This bug has been marked as a duplicate of bug 1094396 ***


Note You need to log in before you can comment on or make changes to this bug.