-
Notifications
You must be signed in to change notification settings - Fork 24
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
Call to Tracer API ended unexpectedly #156
Comments
Also had this, installing
|
Had this exact issue on Fedora 34 as well. Using tracer |
Just got this on Fedora 34 while running 'dnf update'. python3-tracer-0.7.6-1.fc34.noarch |
This is also happening in Mageia, see mgabz#28577. |
Thank you for the reports guys, I am planning to do some Tracer bugfixing the following week and make a new release. |
Fix #151 Fix #156 RHBZ 1958779 RHBZ 1940718 MGABZ 28577 I was trying to fix this issue several times already and the best summary I could write was this one #151 (comment) It doesn't any sense to me since the problematic line is self.args.applications.with_helpers().exclude_types(types).sorted("helper") which first filters only applications that have non-`None` helper and only those try to sort, i.e. when sorting there shouldn't be any `None` values. Anyway, the issue is real and occurs to many people, so I am reworking the sorting function and making sure it doesn't traceback when some helper is `None`. I have no idea what are the problematic applications and how they will be displayed in the output but I guess everything is better than a traceback. And maybe it will help us move closer to a proper solution.
Fix #151 Fix #156 RHBZ 1958779 RHBZ 1940718 MGABZ 28577 I was trying to fix this issue several times already and the best summary I could write was this one #151 (comment) It doesn't any sense to me since the problematic line is self.args.applications.with_helpers().exclude_types(types).sorted("helper") which first filters only applications that have non-`None` helper and only those try to sort, i.e. when sorting there shouldn't be any `None` values. Anyway, the issue is real and occurs to many people, so I am reworking the sorting function and making sure it doesn't traceback when some helper is `None`. I have no idea what are the problematic applications and how they will be displayed in the output but I guess everything is better than a traceback. And maybe it will help us move closer to a proper solution.
Tracer:
Call to Tracer API ended unexpectedly:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/tracer/resources/collections.py", line 36, in sorted
return sorted(self, key=methodcaller(attribute))
TypeError: 'str' object is not callable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/dnf-plugins/tracer.py", line 66, in transaction
tracer.render()
File "/usr/lib/python3.9/site-packages/dnf-plugins/tracer.py", line 91, in render
return view.render()
File "/usr/lib/python3.9/site-packages/tracer/views/default.py", line 59, in render
{"title": " * " + _("Some applications using:"), "content": with_helpers_content()},
File "/usr/lib/python3.9/site-packages/tracer/views/default.py", line 20, in with_helpers_content
applications = self.args.applications.with_helpers().exclude_types(types).sorted("helper")
File "/usr/lib/python3.9/site-packages/tracer/resources/collections.py", line 38, in sorted
return sorted(self, key=attrgetter(attribute))
TypeError: '<' not supported between instances of 'NoneType' and 'str'
Please visit https://github.com/FrostyX/tracer/issues and submit the issue. Thank you
We apologize for any inconvenience
The text was updated successfully, but these errors were encountered: