Skip to content
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

Error when running targetcli on Amazon Linux 2 #29

Open
gsaraf opened this issue Dec 29, 2022 · 0 comments
Open

Error when running targetcli on Amazon Linux 2 #29

gsaraf opened this issue Dec 29, 2022 · 0 comments

Comments

@gsaraf
Copy link

gsaraf commented Dec 29, 2022

I'm trying to run targetcli on an Amazon Linux 2 instance. After installing with sudo yum -y install targetcli I get:

$ targetcli
Traceback (most recent call last):
  File "/usr/bin/targetcli", line 24, in <module>
    from targetcli import UIRoot
  File "/usr/lib/python2.7/site-packages/targetcli/__init__.py", line 18, in <module>
    from .ui_root import UIRoot
  File "/usr/lib/python2.7/site-packages/targetcli/ui_root.py", line 33, in <module>
    from .ui_backstore import complete_path, UIBackstores
  File "/usr/lib/python2.7/site-packages/targetcli/ui_backstore.py", line 20, in <module>
    from gi.repository import Gio
ImportError: No module named gi.repository

Is there another package I need to install?

This is information on the yum package:

$ sudo yum info targetcli
Loaded plugins: priorities, update-motd, versionlock
Installed Packages
Name        : targetcli
Arch        : noarch
Version     : 2.1.53
Release     : 1.amzn2
Size        : 253 k
Repo        : installed
From repo   : amzn2-core
Summary     : An administration shell for storage targets
URL         : https://github.com/open-iscsi/targetcli-fb
License     : ASL 2.0
Description : An administration shell for configuring iSCSI, FCoE, and other
            : SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
            : users will also need to install and use fcoe-utils.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant