Tuesday, April 30, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3406  / 1 Year ago, wed, november 30, 2022, 10:14:29

It seems like I am getting some error related to Python, but I am not sure why I am getting it. When I ran Software Updater (in 12.10) from unity, it didn't even fire up.



When I did this from the terminal:



sudo update-manager


I am getting this trace, and update manager doesn't even open. I don't think this is a bug, so I am asking it here.



Traceback (most recent call last):
File "/usr/bin/update-manager", line 28, in <module>
from gi.repository import Gtk
File "/usr/lib/python3/dist-packages/gi/repository/__init__.py", line 25, in <module>
from ..importer import DynamicImporter
File "/usr/lib/python3/dist-packages/gi/importer.py", line 24, in <module>
import logging
ImportError: No module named logging
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 4, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 15, in <module>
import xml.dom, xml.dom.minidom
ImportError: No module named xml.dom

Original exception was:
Traceback (most recent call last):
File "/usr/bin/update-manager", line 28, in <module>
from gi.repository import Gtk
File "/usr/lib/python3/dist-packages/gi/repository/__init__.py", line 25, in <module>
from ..importer import DynamicImporter
File "/usr/lib/python3/dist-packages/gi/importer.py", line 24, in <module>
import logging
ImportError: No module named logging


However, apt-get commands work fine. Python seems to be installed properly(?), so I can't figure out what the trace is saying. Any idea what can I do to get back update-manager working?


More From » update-manager

 Answers
6

The modules logging and xml.dom come from python3.2-minimal and python3.2 respectively.



This should fix the problem:



sudo apt-get install --reinstall python3.2 python3.2-minimal

[#33472] Wednesday, November 30, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
riffnkful

Total Points: 390
Total Questions: 123
Total Answers: 110

Location: Puerto Rico
Member since Sat, Mar 13, 2021
3 Years ago
riffnkful questions
Thu, Nov 17, 22, 04:24, 1 Year ago
Mon, Nov 28, 22, 01:40, 1 Year ago
Mon, Jul 11, 22, 13:24, 2 Years ago
Sun, Feb 5, 23, 05:06, 1 Year ago
;