Thomas Schwinge <[email protected]> writes:

> Hi Noé!
>
> On 2026-02-27T14:39:38+0100, Noé Lopez <[email protected]> wrote:
>> Thomas Schwinge <[email protected]> writes:
>>> I'm using the 'lit' command, via the Guix 'python-lit' package.  That
>>> works fine.
>>>
>>> Now, I want to use 'lit' with '--timeout N' option, and it fails:
>>>
>>>     [...]
>>>     .lit-real: 
>>> /gnu/store/d8vy11ka0rkk54xngh8c4kl85d234fx2-python-lit-18.1.8/lib/python3.11/site-packages/lit/LitConfig.py:129:
>>>  fatal: Setting a timeout per test not supported. Requires the Python 
>>> psutil module but it could not be found. Try installing it via pip or via 
>>> your operating system's package manager.
>>>
>>> So, I add in the Guix 'python-psutil' package.  But: that doesn't resolve
>>> the issue.  [...]
>>>
>>> Am I doing anything wrong, or is this a bug?
>
>> If you want python to find the psutil package, add python to your shell
>> invocation:
>>
>> guix shell python python-lit python-psutil
>>
>> That will cause guix shell to start setting the GUIX_PYTHONPATH
>> environment variable (see --search-paths).
>
> I confirm that work, thanks!
>
> I think I now also get the mental model around this, but still: this was
> quite non-obvious, at least to me...
>

Yes, I also agree. It is a bug according to
<https://issues.guix.gnu.org/22138>.

>
> Grüße
>  Thomas

Viele Grüße :)
Noé

Attachment: signature.asc
Description: PGP signature

Reply via email to