[Bug 1945661] Re: openstack commands fail with GTK3 error
I believe I've nailed this one down, after a day of heads-down testing. The issue boils down to this bit of code, in /usr/lib/python3/dist- packages/cmd2.py: # The extraneous output bug in pyperclip on Linux using xclip was fixed in more recent versions of pyperclip if sys.platform.startswith('linux') and pyperclip_ver < 1.6: # Avoid extraneous output to stderr from xclip when clipboard is empty at cost of overwriting clipboard contents pyperclip.copy('') else: # Try getting the contents of the clipboard _ = pyperclip.paste() Specifically that last line: `_ = pyperclip.paste()`, which assumes a clipboard exists and has been initialized. In most cases, it has not/will not be. The attached diff to cmd2.py will allow these commands to succeed. I initially added some debug to allow me to see if the clipboard was accessible or not, and that's how I found this. Let me know if this is sufficient to SRU into the python3-cmd2 package to address this. ** Patch added: "cmd2-diff.patch" https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+attachment/5761586/+files/cmd2-diff.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1945661] Re: openstack commands fail with GTK3 error
The attachment "cmd2-diff.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1945661] Re: openstack commands fail with GTK3 error
I also get this error when I execute the "openstack XXX" command remotely in an Xshell, and I noticed that the same prompt seems to be related to trying to open the GUI - initialization. So, I run "openstack XXX" in putty, and no more related errors. System version: ubuntu20.04 tls openstack: W Possible solutions: use terminal tools without desktop functions, or cancel the installation of the desktop from the underlying system -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1945661] Re: openstack commands fail with GTK3 error
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-openstackclient (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1945661] Re: openstack commands fail with GTK3 error
I figured out that the error is coming only when I try installation using SSH terminals from a windows host. I shifted to linux and SSH'd into the controller and there wasn't any error. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1945661] Re: openstack commands fail with GTK3 error
Anyone looking into this. This error is consistent. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945661 Title: openstack commands fail with GTK3 error To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/1945661/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs