tox-gh icon indicating copy to clipboard operation
tox-gh copied to clipboard

tox-gh fails with uv-venv-lock-runner

Open leodevian opened this issue 1 year ago • 0 comments

Hello,

I installed tox-gh and tox-uv and it appears that using the uv-venv-lock-runner runner from tox-uv raises an internal error.

Traceback (most recent call last):
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/tox/session/cmd/run/single.py", line 48, in _evaluate
    code, outcomes = run_commands(tox_env, no_test)
                     ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/tox/session/cmd/run/single.py", line 79, in run_commands
    MANAGER.tox_before_run_commands(tox_env)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/tox/plugin/manager.py", line 90, in tox_before_run_commands
    self.manager.hook.tox_before_run_commands(tox_env=tox_env)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__
    return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/pluggy/_callers.py", line 139, in _multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall
    res = hook_impl.function(*args)
  File "/home/runner/.local/share/uv/tools/tox/lib/python3.13/site-packages/tox_gh/plugin.py", line 125, in tox_before_run_commands
    assert _STATE.installing  # noqa: S101
           ^^^^^^^^^^^^^^^^^
AttributeError: '_thread._local' object has no attribute 'installing'

leodevian avatar Feb 22 '25 13:02 leodevian