Skip to content

[Bug] - Additional package menu with textual #4187

@CelestifyX

Description

@CelestifyX

Which ISO version are you using?

--

The installation log

Task exception was never retrieved
future: <Task finished name='Task-28' coro=<Worker._run() done, defined at /home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py:358> exception=AttributeError("'AwaitComplete' object has no attribute '_pre_await'")>
Traceback (most recent call last):
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py", line 370, in _run
    self._result = await self.run()
                   ^^^^^^^^^^^^^^^^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py", line 354, in run
    return await (
           ^^^^^^^
        self._run_threaded() if self._thread_worker else self._run_async()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py", line 326, in _run_threaded
    return await loop.run_in_executor(None, runner, self._work)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/concurrent/futures/thread.py", line 86, in run
    result = ctx.run(self.task)
  File "/usr/lib/python3.14/concurrent/futures/thread.py", line 73, in run
    return fn(*args, **kwargs)
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py", line 309, in run_callable
    return work()
  File "/home/celestifyx/Desktop/archinstall/archinstall/tui/ui/components.py", line 113, in _exec_callback
    _ = self.dismiss(Result(ResultType.Selection, _data=result))
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/screen.py", line 1913, in dismiss
    await_pop = self.app.pop_screen()
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/app.py", line 2991, in pop_screen
    return AwaitComplete(do_pop()).call_next(self)
           ~~~~~~~~~~~~~^^^^^^^^^^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/await_complete.py", line 29, in __init__
    self._future: Future[Any] = gather(*awaitables)
                                ~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3.14/asyncio/tasks.py", line 876, in gather
    fut = ensure_future(arg, loop=loop)
  File "/usr/lib/python3.14/asyncio/tasks.py", line 730, in ensure_future
    loop = events.get_event_loop()
  File "/usr/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'asyncio_0'.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/worker.py", line 384, in _run
    app._handle_exception(worker_failed)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/app.py", line 3153, in _handle_exception
    self._fatal_error()
    ~~~~~~~~~~~~~~~~~^^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/app.py", line 3160, in _fatal_error
    traceback = Traceback(
        show_locals=True, width=None, locals_max_length=5, suppress=[rich]
    )
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/rich/traceback.py", line 321, in __init__
    trace = self.extract(
        exc_type, exc_value, traceback, show_locals=show_locals
    )
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/rich/traceback.py", line 581, in extract
    key: pretty.traverse(
         ~~~~~~~~~~~~~~~^
        value,
        ^^^^^^
    ...<2 lines>...
        max_depth=locals_max_depth,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/rich/pretty.py", line 874, in traverse
    node = _traverse(_object, root=True)
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/rich/pretty.py", line 667, in _traverse
    args = list(iter_rich_args(rich_repr_result))
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/rich/pretty.py", line 634, in iter_rich_args
    for arg in rich_args:
               ^^^^^^^^^
  File "/home/celestifyx/Desktop/archinstall/.venv/lib/python3.14/site-packages/textual/await_complete.py", line 35, in __rich_repr__
    yield "pre_await", self._pre_await, None
                       ^^^^^^^^^^^^^^^
AttributeError: 'AwaitComplete' object has no attribute '_pre_await'
<sys>:0: RuntimeWarning: coroutine 'App.pop_screen.<locals>.do_pop' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

describe the problem

Description of the issue

Step: run archinstall -> Additional packages -> back -> exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions