Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
leodevian opened this issue Feb 22, 2025 · 0 comments
Open

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

leodevian opened this issue Feb 22, 2025 · 0 comments

Comments

@leodevian
Copy link

leodevian commented Feb 22, 2025

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'
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

No branches or pull requests

1 participant