@dexter in #1, I also tried moving the `import requests_unixsocket` line up out of the try-except block, and also found that it worked. (None of the other proposed solutions, including reinstalling all of the proposed packages, had any effect). Strangely, afer *undoing* those change, i.e. moving the `import requests_unixsocket` line back into the try-except block, software-properties-gtk was *still* able to start!
Not sure how to explain this, other than perhaps some race condition (interprocess comms via DBus?), or perhaps some old .pyc file that was regenerated after the source .py file as updated. Who knows. Either way, this is still a huge issue. This was a fresh install of Xubuntu 20.04.5. Issue started happening a couple of weeks after installing the OS. No idea what triggered it. Note that `import dateutil.parser` works fine. Everything in that try- except block imports fine when I try it in a separate python3 session. Also, if I try pasting `print(requests_unixsocket)` anywhere outside that block, it works fine. It was only when I tried pasting it in `LivepatchService.__init__` that it failed, almost as if some other module was internally deleting the name from the namespace. Very mysterious. Also note that I completely uninstalled snap (which I absolutely detest) on this system, but software-properties-gtk was working fine for a couple of weeks after uninstalling snap. I haven't had this problem on another fully update Xubuntu 20.04 system, where I also uninstalled snap long ago. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to software-properties in Ubuntu. https://bugs.launchpad.net/bugs/1830914 Title: software-properties-gtk does not run at all! Status in software-properties package in Ubuntu: Expired Bug description: software-properties-gtk does not even start! $ software-properties-gtk --debug ENABLED COMPS: {'universe', 'main'} INTERNET COMPS: {'universe', 'main'} MAIN SOURCES URI: http://archive.ubuntu.com/ubuntu Comps: ['main'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu BaseURI: http://archive.ubuntu.com/ubuntu URI: http://archive.ubuntu.com/ubuntu Comps: ['universe'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu BaseURI: http://archive.ubuntu.com/ubuntu CHILD SOURCES URI: http://archive.ubuntu.com/ubuntu Comps: ['main'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu BaseURI: None URI: http://archive.ubuntu.com/ubuntu Comps: ['universe'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu BaseURI: None URI: http://archive.ubuntu.com/ubuntu Comps: ['main'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu|security.ubuntu.com BaseURI: http://security.ubuntu.com/ubuntu/ URI: http://archive.ubuntu.com/ubuntu Comps: ['universe'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu|security.ubuntu.com BaseURI: http://security.ubuntu.com/ubuntu/ URI: http://archive.ubuntu.com/ubuntu Comps: ['universe', 'main'] Enabled: True Valid: True MatchURI: archive.ubuntu.com/ubuntu BaseURI: None CDROM SOURCES SOURCE CODE SOURCES DISABLED SOURCES ISV Traceback (most recent call last): File "/usr/bin/software-properties-gtk", line 100, in <module> app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file) File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 200, in __init__ self.init_livepatch() File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1482, in init_livepatch self.livepatch_page = LivepatchPage(self) File "/usr/lib/python3/dist-packages/softwareproperties/gtk/LivepatchPage.py", line 51, in __init__ self._lps = LivepatchService() File "/usr/lib/python3/dist-packages/softwareproperties/LivepatchService.py", line 93, in __init__ self._session = requests_unixsocket.Session() NameError: name 'requests_unixsocket' is not defined {Exited with code 1.} $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 19.04 Release: 19.04 Codename: disco $ dpkg-query -l software-properties-gtk python3-requests-unixsocket Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-===========================-============-============-=============================================================== ii python3-requests-unixsocket 0.1.5-3 all Use requests to talk HTTP via a UNIX domain socket - Python 3.x ii software-properties-gtk 0.97.11 all manage the repositories that you install software from (gtk) $ sudo apt-get update {Works.} $ sudo apt-get dist-upgrade {Works.} To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1830914/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp

