-
Bug
-
Resolution: Done-Errata
-
Normal
-
CentOS Stream 9
-
None
-
anaconda-34.25.5.1-1.el9
-
None
-
Moderate
-
rhel-sst-installer
-
ssg_front_door
-
12
-
3
-
False
-
-
No
-
CentOS Stream
-
None
-
Pass
-
None
-
Unspecified Release Note Type - Unknown
-
Unspecified
-
None
Hello, I am using the Centos Stream 9 with anaconda-34.25.3.8
Now I try to built my own Linux distribution with lorax and genisoimage try to built my own Linux distribution with lorax and genisoimage (The difference from Centos Stream is that in my iso treeinfo, I added an additional local repo of my own in addition to the AppStream),and when I entered the installation interface and clicked the Installation Source button, an index error was triggered, view the traceback in /tmp/anaconda.log as follows :
Traceback (most recent call last):
File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/installation_source.py", line 1495, in on_protocol_changed
self._remove_treeinfo_repositories()
File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/installation_source.py", line 1662, in _remove_treeinfo_repositories
self._remove_repository(path)
File "/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/installation_source.py", line 1794, in _remove_repository
itr = self._repo_store[repo_model_path].iter
File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 851, in _getitem_
aiter = self._getiter(key)
File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 834, in _getiter
raise IndexError("could not find tree path '%s'" % key)
IndexError: could not find tree path '1'
The pdb debugger backtrace:
Entering debugger...
Use 'continue' command to quit the debugger and get back to the main window
> /usr/lib/python3.9/site-packages/gi/overrides/Gtk.py(834)getiter()
-> raise IndexError("could not find tree path '%s'" % key)
(Pdb) bt
/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/installation_source.py(1495)on_protocol_changed()
-> self._remove_treeinfo_repositories()
/usr/lib64/python3.9/site-packages/pyanaconda/ui/gui/spokes/installation_source.py(1662)_remove_treeinfo_repositories()
-> self._remove_repository(path)
/usr/1ib64/python3.9/site-packages/pyanaconda/ui/gui/spokesinstallation_source.py (1794)_remove_repository()
-> itr = self._repo_store[repo_model_path].iter
/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py(851)_getitem_()
-> aiter = self._getiter(key)
> /usr/lib/python3.9/site-packages/gi/overrides/Gtk.py(834)_getiter()
-> raise IndexError("could not find tree path '%s'" % key)
Now I have solved the issue and made a patch,and made this pull request:
https://github.com/rhinstaller/anaconda/pull/5520
CentOS Stream 9 doesn't have this problem because only the AppStream repository in the treeinfo is added to _repo_store[].
However, in my Linux distribution iso, in addition to AppStream, there are some other local repositories and are recorded to the iso treeinfo file. That would trigger this error when I enter the installation selection interface.
- links to
-
RHBA-2024:130339 anaconda update