[Bug 1839501] Re: Can't Switch between Nvidia Drivers because of error in SoftwarePropertiesQt.py
Brian Murray
brian at ubuntu.com
Sat Oct 12 17:50:46 UTC 2019
It's actually because the "get_dependencies" function is not defined in
SoftwarePropertiesQt.py and is not imported.
softwareproperties/gtk/SoftwarePropertiesGtk.py:def get_dependencies(apt_cache, package_name, pattern=None):
softwareproperties/gtk/SoftwarePropertiesGtk.py: for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'):
softwareproperties/qt/SoftwarePropertiesQt.py: for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'):
** Tags added: eoan
** Changed in: software-properties (Ubuntu)
Importance: Undecided => High
** Changed in: software-properties (Ubuntu)
Status: Confirmed => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to software-properties in Ubuntu.
https://bugs.launchpad.net/bugs/1839501
Title:
Can't Switch between Nvidia Drivers because of error in
SoftwarePropertiesQt.py
Status in software-properties package in Ubuntu:
Triaged
Bug description:
Hardware: Dell Latitude E6430 with GF108GLM [NVS 5200m]
Lubuntu 19.04
LBS Release: Description: Ubuntu 19.04
software-properties-qt:
Installed: 0.97.11
Candidate: 0.97.11
Version table:
*** 0.97.11 500
500 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 Packages
100 /var/lib/dpkg/status
I ran "Additional Drivers" from the menu and switched from Nouveau to the nvidia-driver-418 to see how it ran.
After testing for a couple days I tried to switch back.
When I select Nouveau and click "Apply changes" nothing happens.
I ran software-properties-qt from the command line and get this error
when I click "Apply Changes".
#lxsudo /usr/bin/software-properties-qt '--open-tab=4'
(0x7ffda7818770) Warning: Icon theme "breeze" not found.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/qt/SoftwarePropertiesQt.py", line 845, in on_driver_changes_apply
for dep in get_dependencies(self.apt_cache, pkg.shortname, 'nvidia'):
NameError: name 'get_dependencies' is not defined
I searched through the source and I'm guessing it's the extra parameter 'nvidia' at the end that's causing the issue, since there's no 3 parameter function definition for get_dependencies.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1839501/+subscriptions
More information about the foundations-bugs
mailing list