[Bug 1722553] Re: openstack command raises exception referencing gi.repository and gnome bug 709183

Launchpad Bug Tracker 1722553 at bugs.launchpad.net
Thu Feb 8 19:50:57 UTC 2018


Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: cmd2 (Ubuntu Artful)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/1722553

Title:
  openstack command raises exception referencing gi.repository and gnome
  bug 709183

Status in cmd2 package in Ubuntu:
  Fix Released
Status in python-openstackclient package in Ubuntu:
  Invalid
Status in python-pyperclip package in Ubuntu:
  Fix Released
Status in cmd2 source package in Artful:
  Confirmed
Status in python-openstackclient source package in Artful:
  Confirmed
Status in python-pyperclip source package in Artful:
  Confirmed

Bug description:
  $ openstack
  Exception raised: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

  
  $ sstack openstack --debug
  START with options: [u'--debug']
  options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', auth_type='', auth_url='http://10.245.161.156:5000/v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, interface='', key='', log_file=None, openid_scope='', os_beta_command=False, os_compute_api_version='', os_identity_api_version='3', os_image_api_version='', os_network_api_version='', os_object_api_version='', os_project_id=None, os_project_name=None, os_volume_api_version='', passcode='', password='***', project_domain_id='', project_domain_name='user', project_id='6286a8c4f88046b3bdf25b26ff54f1f7', project_name='smoser', protocol='', redirect_uri='', region_name='serverstack', service_provider_endpoint='', service_provider_entity_id='', timing=False, token='***', trust_id='', url='', user_domain_id='', user_domain_name='user', user_id='', username='smoser', verbose_level=3, verify=None)
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', 'auth_url': 'http://10.245.161.156:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'smoser', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': 'serverstack', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'project_id': '6286a8c4f88046b3bdf25b26ff54f1f7', 'user_domain_name': 'user', 'project_name': 'smoser', 'project_domain_name': 'user'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
  cloud cfg: {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', 'auth_url': 'http://10.245.161.156:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'smoser', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': 'serverstack', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'project_id': '6286a8c4f88046b3bdf25b26ff54f1f7', 'user_domain_name': 'user', 'project_name': 'smoser', 'project_domain_name': 'user'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  compute API version 2, cmd group openstack.compute.v2
  network API version 2, cmd group openstack.network.v2
  image API version 2, cmd group openstack.image.v2
  volume API version 2, cmd group openstack.volume.v2
  identity API version 3, cmd group openstack.identity.v3
  object_store API version 1, cmd group openstack.object_store.v1
  neutronclient API version 2, cmd group openstack.neutronclient.v2
  Auth plugin password selected
  auth_config_hook(): {'auth_type': 'password', 'beta_command': False, u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', u'metering_api_version': u'2', 'auth_url': 'http://10.245.161.156:5000/v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': u'2', 'verify': True, u'dns_api_version': u'2', u'object_store_api_version': u'1', 'username': 'smoser', u'container_infra_api_version': u'1', 'verbose_level': 3, 'region_name': 'serverstack', 'api_timeout': None, u'baremetal_api_version': u'1', 'auth': {'project_id': '6286a8c4f88046b3bdf25b26ff54f1f7', 'user_domain_name': 'user', 'project_name': 'smoser', 'project_domain_name': 'user'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
      ret_val = super(OpenStackShell, self).run(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 277, in run
      result = self.interact()
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 177, in interact
      ret_value = super(OpenStackShell, self).interact()
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 316, in interact
      from .interactive import InteractiveApp
    File "/usr/lib/python2.7/dist-packages/cliff/interactive.py", line 20, in <module>
      import cmd2
    File "/usr/lib/python2.7/dist-packages/cmd2.py", line 312, in <module>
      _ = pyperclip.paste()
    File "/usr/lib/python2.7/dist-packages/pyperclip/clipboards.py", line 37, in paste_gtk
      clipboardContents = gtk.Clipboard().wait_for_text()
    File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 64, in __getattr__
      raise AttributeError(_static_binding_error)
  AttributeError: When using gi.repository you must not import static modules like "gobject". Please change all occurrences of "import gobject" to "from gi.repository import GObject". See: https://bugzilla.gnome.org/show_bug.cgi?id=709183

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: python-openstackclient 3.12.0-0ubuntu2
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
  ApportVersion: 2.20.7-0ubuntu2
  Architecture: amd64
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Oct 10 10:58:55 2017
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2015-07-23 (810 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Alpha amd64 (20150722.1)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: python-openstackclient
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmd2/+bug/1722553/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list