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
Traceback (most recent call last):
File "/usr/lib64/python3.11/subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib64/python3.11/subprocess.py", line 1955, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ruff'
An internal error has occurred. Please file a bug report at
https://github.com/scientific-python/spin
including the above traceback and the following information:
spin: 0.13, package: numpy
Aborting.
Running ruff gives zsh: command not found: ruff, because it's not installed.
Running python -m pip install ruff fixes the issue, so there's an error with the dependencies. I'm in Python 3.11, OpenSUSE Tumbleweed.
The text was updated successfully, but these errors were encountered:
Thanks @caph1993, this is a good reminder to improve that error message. I should do two things:
(1) Catch exceptions in run, so that they don't propagate through to this point and
(2) Not direct users to file bugs here when the traceback comes from a custom command.
For your specific case: in NumPy, the .spin/cmds.pylint command should be made more robust to deal with missing ruff.
In linux, running
spin lint
gives me this error.Running
ruff
giveszsh: command not found: ruff
, because it's not installed.Running
python -m pip install ruff
fixes the issue, so there's an error with the dependencies. I'm in Python 3.11, OpenSUSE Tumbleweed.The text was updated successfully, but these errors were encountered: