You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
building '/nix/store/hdyg3h05wyc0cgfzmf79zdczqvnl15pr-python3.12-textual-1.0.0.drv'...Sourcing python-remove-tests-dir-hookSourcing python-catch-conflicts-hook.shSourcing python-remove-bin-bytecode-hook.shSourcing pypa-build-hookUsing pypaBuildPhaseSourcing python-runtime-deps-check-hookUsing pythonRuntimeDepsCheckHookSourcing pypa-install-hookUsing pypaInstallPhaseSourcing python-imports-check-hook.shUsing pythonImportsCheckPhaseSourcing python-namespaces-hookSourcing python-catch-conflicts-hook.shSourcing pytest-check-hookUsing pytestCheckPhaseRunning phase: unpackPhaseunpacking source archive /nix/store/ivj720i151spnqszbd1lm6yv12dbldmg-sourcesource root is sourcesetting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/tools/widget_documentation.py"Running phase: patchPhaseRunning phase: updateAutotoolsGnuConfigScriptsPhaseRunning phase: configurePhaseno configure script, doing nothingRunning phase: buildPhaseExecuting pypaBuildPhaseCreating a wheel...pypa build flags: --no-isolation --outdir dist/ --wheel* Getting build dependencies for wheel...* Building wheel...Successfully built textual-1.0.0-py3-none-any.whlFinished creating a wheel...Finished executing pypaBuildPhaseRunning phase: pythonRuntimeDepsCheckHookExecuting pythonRuntimeDepsCheckChecking runtime dependencies for textual-1.0.0-py3-none-any.whlFinished executing pythonRuntimeDepsCheckRunning phase: installPhaseExecuting pypaInstallPhaseSuccessfully installed textual-1.0.0-py3-none-any.whlFinished executing pypaInstallPhaseRunning phase: pythonOutputDistPhaseExecuting pythonOutputDistPhaseFinished executing pythonOutputDistPhaseRunning phase: fixupPhaseshrinking RPATHs of ELF executables and libraries in /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0checking for references to /build/ in /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0...patching script interpreter paths in /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0stripping (with command strip and flags -S -p) in /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/libshrinking RPATHs of ELF executables and libraries in /nix/store/vyh2s4lbjkzlsv10aljvqid5mvfgg230-python3.12-textual-1.0.0-distchecking for references to /build/ in /nix/store/vyh2s4lbjkzlsv10aljvqid5mvfgg230-python3.12-textual-1.0.0-dist...patching script interpreter paths in /nix/store/vyh2s4lbjkzlsv10aljvqid5mvfgg230-python3.12-textual-1.0.0-distExecuting pythonRemoveTestsDirFinished executing pythonRemoveTestsDirRunning phase: installCheckPhaseno Makefile or custom installCheckPhase, doing nothingRunning phase: pythonCatchConflictsPhaseRunning phase: pythonRemoveBinBytecodePhaseRunning phase: pythonImportsCheckPhaseExecuting pythonImportsCheckPhaseCheck whether the following modules can be imported: textualRunning phase: pytestCheckPhaseExecuting pytestCheckPhasepytest flags: -m pytest -k not\ test_textual_env_var\ and\ not\ test_register_language\ and\ not\ test_setting_unknown_language\ and\ not\ test_update_highlight_query --ignore-glob=tests/snapshot_tests/test_snapshots.py --dist=loadgroup --numprocesses=4============================= test session starts ==============================platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0rootdir: /build/sourceconfigfile: pyproject.tomltestpaths: testsplugins: aiohttp-1.1.0, asyncio-0.25.2, xdist-3.6.1, syrupy-4.8.1, time-machine-2.15.0asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=function4 workers [2749 items] m........................................................................ [ 2%].............................................x.......................... [ 5%]........................................................................ [ 7%]........................................................................ [ 10%]........................................................................ [ 13%]........................................................................ [ 15%]........................................................................ [ 18%]........................................................................ [ 20%]........................................................................ [ 23%]........................................................................ [ 26%]........................................................................ [ 28%]........................................................................ [ 31%]........................................................................ [ 34%]........................................................................ [ 36%]........................................................................ [ 39%]........................................................................ [ 41%].........................................x.............................. [ 44%]........................................................................ [ 47%]........................................................................ [ 49%]...EE................................................................... [ 52%]............................x........................................... [ 55%]........................................................................ [ 57%]........................................................................ [ 60%]........................................................................ [ 62%]........................................................................ [ 65%]........................................................................ [ 68%]........................................................................ [ 70%]........................................................................ [ 73%]........................................................................ [ 75%]........................................................................ [ 78%]........................................................................ [ 81%]......................................s................................. [ 83%].................................x...................................... [ 86%]........................................................................ [ 89%]........................................................................ [ 91%]........................................................................ [ 94%]........................................................................ [ 96%]........................................................................ [ 99%]............. [100%]==================================== ERRORS ====================================______ ERROR at setup of test_focus_next_and_previous_with_type_selector _______[gw2] linux -- Python 3.12.8 /nix/store/0l539chjmcq5kdd43j6dgdjky4sjl7hl-python3-3.12.8/bin/python3.12self = App(title='App', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'})screen = Screen(), callback = None, wait_for_dismiss = False def push_screen( self, screen: Screen[ScreenResultType] | str, callback: ScreenResultCallbackType[ScreenResultType] | None = None, wait_for_dismiss: bool = False, ) -> AwaitMount | asyncio.Future[ScreenResultType]: """Push a new [screen](/guide/screens) on the screen stack, making it the current screen. Args: screen: A Screen instance or the name of an installed screen. callback: An optional callback function that will be called if the screen is [dismissed][textual.screen.Screen.dismiss] with a result. wait_for_dismiss: If `True`, awaiting this method will return the dismiss value from the screen. When set to `False`, awaiting this method will wait for the screen to be mounted. Note that `wait_for_dismiss` should only be set to `True` when running in a worker. Raises: NoActiveWorker: If using `wait_for_dismiss` outside of a worker. Returns: An optional awaitable that awaits the mounting of the screen and its children, or an asyncio Future to await the result of the screen. """ if not isinstance(screen, (Screen, str)): raise TypeError( f"push_screen requires a Screen instance or str; not {screen!r}" ) try:
> loop = asyncio.get_running_loop()E RuntimeError: no running event loop/nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/app.py:2639: RuntimeErrorDuring handling of the above exception, another exception occurred: @pytest.fixture def screen() -> Screen: app = App() with app._context():
> app.push_screen(Screen())tests/test_focus.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/app.py:2642: in push_screen future: asyncio.Future[ScreenResultType] = asyncio.Future()_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7fffefb630e0> def get_event_loop(self): """Get the event loop for the current context. Returns an instance of EventLoop or raises an exception. """ if (self._local._loop is None and not self._local._set_called and threading.current_thread() is threading.main_thread()): stacklevel = 2 try: f = sys._getframe(1) except AttributeError: pass else: # Move up the call stack so that the warning is attached # to the line outside asyncio itself. while f: module = f.f_globals.get('__name__') if not (module == 'asyncio' or module.startswith('asyncio.')): break f = f.f_back stacklevel += 1 import warnings warnings.warn('There is no current event loop', DeprecationWarning, stacklevel=stacklevel) self.set_event_loop(self.new_event_loop()) if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.' % threading.current_thread().name)E RuntimeError: There is no current event loop in thread 'MainThread'./nix/store/0l539chjmcq5kdd43j6dgdjky4sjl7hl-python3-3.12.8/lib/python3.12/asyncio/events.py:702: RuntimeError_______ ERROR at setup of test_focus_next_and_previous_with_str_selector _______[gw2] linux -- Python 3.12.8 /nix/store/0l539chjmcq5kdd43j6dgdjky4sjl7hl-python3-3.12.8/bin/python3.12self = App(title='App', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'})screen = Screen(), callback = None, wait_for_dismiss = False def push_screen( self, screen: Screen[ScreenResultType] | str, callback: ScreenResultCallbackType[ScreenResultType] | None = None, wait_for_dismiss: bool = False, ) -> AwaitMount | asyncio.Future[ScreenResultType]: """Push a new [screen](/guide/screens) on the screen stack, making it the current screen. Args: screen: A Screen instance or the name of an installed screen. callback: An optional callback function that will be called if the screen is [dismissed][textual.screen.Screen.dismiss] with a result. wait_for_dismiss: If `True`, awaiting this method will return the dismiss value from the screen. When set to `False`, awaiting this method will wait for the screen to be mounted. Note that `wait_for_dismiss` should only be set to `True` when running in a worker. Raises: NoActiveWorker: If using `wait_for_dismiss` outside of a worker. Returns: An optional awaitable that awaits the mounting of the screen and its children, or an asyncio Future to await the result of the screen. """ if not isinstance(screen, (Screen, str)): raise TypeError( f"push_screen requires a Screen instance or str; not {screen!r}" ) try:
> loop = asyncio.get_running_loop()E RuntimeError: no running event loop/nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/app.py:2639: RuntimeErrorDuring handling of the above exception, another exception occurred: @pytest.fixture def screen() -> Screen: app = App() with app._context():
> app.push_screen(Screen())tests/test_focus.py:27: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/app.py:2642: in push_screen future: asyncio.Future[ScreenResultType] = asyncio.Future()_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 0x7fffefb630e0> def get_event_loop(self): """Get the event loop for the current context. Returns an instance of EventLoop or raises an exception. """ if (self._local._loop is None and not self._local._set_called and threading.current_thread() is threading.main_thread()): stacklevel = 2 try: f = sys._getframe(1) except AttributeError: pass else: # Move up the call stack so that the warning is attached # to the line outside asyncio itself. while f: module = f.f_globals.get('__name__') if not (module == 'asyncio' or module.startswith('asyncio.')): break f = f.f_back stacklevel += 1 import warnings warnings.warn('There is no current event loop', DeprecationWarning, stacklevel=stacklevel) self.set_event_loop(self.new_event_loop()) if self._local._loop is None:
> raise RuntimeError('There is no current event loop in thread %r.' % threading.current_thread().name)E RuntimeError: There is no current event loop in thread 'MainThread'./nix/store/0l539chjmcq5kdd43j6dgdjky4sjl7hl-python3-3.12.8/lib/python3.12/asyncio/events.py:702: RuntimeError=============================== warnings summary ===============================tests/test_screen_modes.py::test_add_mode /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/strip.py:269: RuntimeWarning: coroutine 'test_async_reactive_watch_callbacks_go_on_the_watcher.<locals>.MyApp.callback' was never awaited @property Enable tracemalloc to get traceback where the object was allocated. See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html=========================== short test summary info ============================ERROR tests/test_focus.py::test_focus_next_and_previous_with_type_selector - RuntimeError: There is no current event loop in thread 'MainThread'.ERROR tests/test_focus.py::test_focus_next_and_previous_with_str_selector - RuntimeError: There is no current event loop in thread 'MainThread'.== 2742 passed, 1 skipped, 4 xfailed, 1 warning, 2 errors in 86.17s (0:01:26) ==error: builder for '/nix/store/hdyg3h05wyc0cgfzmf79zdczqvnl15pr-python3.12-textual-1.0.0.drv' failed with exit code 1; last 25 log lines: > f = f.f_back > stacklevel += 1 > import warnings > warnings.warn('There is no current event loop', > DeprecationWarning, stacklevel=stacklevel) > self.set_event_loop(self.new_event_loop()) > > if self._local._loop is None: > > raise RuntimeError('There is no current event loop in thread %r.' > % threading.current_thread().name) > E RuntimeError: There is no current event loop in thread 'MainThread'. > > /nix/store/0l539chjmcq5kdd43j6dgdjky4sjl7hl-python3-3.12.8/lib/python3.12/asyncio/events.py:702: RuntimeError > =============================== warnings summary =============================== > tests/test_screen_modes.py::test_add_mode > /nix/store/zzwjr042ldvbl7f4nwadw2y3gmdn0pd2-python3.12-textual-1.0.0/lib/python3.12/site-packages/textual/strip.py:269: RuntimeWarning: coroutine 'test_async_reactive_watch_callbacks_go_on_the_watcher.<locals>.MyApp.callback' was never awaited > @property > Enable tracemalloc to get traceback where the object was allocated. > See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info ============================ > ERROR tests/test_focus.py::test_focus_next_and_previous_with_type_selector - RuntimeError: There is no current event loop in thread 'MainThread'. > ERROR tests/test_focus.py::test_focus_next_and_previous_with_str_selector - RuntimeError: There is no current event loop in thread 'MainThread'. > == 2742 passed, 1 skipped, 4 xfailed, 1 warning, 2 errors in 86.17s (0:01:26) == For full logs, run 'nix log /nix/store/hdyg3h05wyc0cgfzmf79zdczqvnl15pr-python3.12-textual-1.0.0.drv'.error: 1 dependencies of derivation '/nix/store/6vyh3jkqqwmsqawvd0gvp6myljbbrrk5-rich-cli-1.8.0.drv' failed to build
Additional context
No response
System metadata
system: "x86_64-linux"
host os: Linux 6.13.2-cachyos, NixOS, 25.05 (Warbler), 25.05.20250213.2ff53fe
Nixpkgs version
Steps to reproduce
nix-shell -p rich-cli
Build failed when package start testing
Can Hydra reproduce this build failure?
The last build job was manually cancelled.
Link to Hydra build job
https://hydra.nixos.org/job/nixos/pr-193600-aarch64-support/nixpkgs.rich-cli.x86_64-linux
Relevant log output
Additional context
No response
System metadata
"x86_64-linux"
Linux 6.13.2-cachyos, NixOS, 25.05 (Warbler), 25.05.20250213.2ff53fe
yes
yes
nix-env (Nix) 2.24.12
"nixos"
/nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source
Notify maintainers
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE
.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: