Skip to content

Allow importing of distributions in the Python 3 Lab Controller.#276

Merged
StykMartin merged 2 commits intobeaker-project:python-3from
StykMartin:wip/mstyk/distro-import
Feb 1, 2026
Merged

Allow importing of distributions in the Python 3 Lab Controller.#276
StykMartin merged 2 commits intobeaker-project:python-3from
StykMartin:wip/mstyk/distro-import

Conversation

@StykMartin
Copy link
Contributor

@StykMartin StykMartin commented Feb 1, 2026

Traceback (most recent call last):
  File "<string>", line 5, in <module>
    main()
    ~~~~^^
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 2117, in main
    exit_status.append(build.process(urls, opts))
                       ~~~~~~~~~~~~~^^^^^^^^^^^^
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 920, in process
    full_os_dir = self.get_os_dir()
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 813, in get_os_dir
    os_dir = filter(lambda x: url_exists(x) \
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    and x, [self.parser.url])[0]
                    ~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'filter' object is not subscriptable
Importing distro from https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/41/Everything/x86_64/os/ ...
Traceback (most recent call last):
  File "<string>", line 5, in <module>
    main()
    ~~~~^^
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 2100, in main
    build = Build(primary_url, options=opts)
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 1950, in Build
    parser = cls.is_importer_for(url, options)
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 1021, in is_importer_for
    if not parser.parse(url):
           ~~~~~~~~~~~~^^^^^
  File "/beaker/LabController/src/bkr/labcontroller/distro_import.py", line 155, in parse
    self.parser.readfp(f)
    ^^^^^^^^^^^^^^^^^^
AttributeError: 'ConfigParser' object has no attribute 'readfp'. Did you mean: 'read'?

Signed-off-by: Martin Styk <mart.styk@gmail.com>
Signed-off-by: Martin Styk <mart.styk@gmail.com>
@StykMartin StykMartin merged commit d0104d0 into beaker-project:python-3 Feb 1, 2026
26 checks passed
@StykMartin StykMartin deleted the wip/mstyk/distro-import branch February 1, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant