Skip to content

find a workaround if stow not installed, TBD#3

Open
renaud wants to merge 1 commit intomainfrom
feature/install_stow
Open

find a workaround if stow not installed, TBD#3
renaud wants to merge 1 commit intomainfrom
feature/install_stow

Conversation

@renaud
Copy link
Copy Markdown
Collaborator

@renaud renaud commented Mar 18, 2026

I got this error when installing

uv run install.py
Using CPython 3.12.9 interpreter at: /Users/ren/miniconda3/bin/python3
Creating virtual environment at: .venv
Installed 21 packages in 69ms
Setting up config...
  Created config directory: /Users/ren/.config/opencode
  No existing config found, starting fresh
  Saved config to: /Users/ren/.config/opencode/opencode.json

Installing files...
Traceback (most recent call last):
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 106, in <module>
    main()
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 102, in main
    install_stow()
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 66, in install_stow
    subprocess.run(
  File "/Users/ren/miniconda3/lib/python3.12/subprocess.py", line 550, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/ren/miniconda3/lib/python3.12/subprocess.py", line 1028, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/Users/ren/miniconda3/lib/python3.12/subprocess.py", line 1963, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'stow'

one workaround is to not use stow, but pure python.

alternatively, we could copy the skills instead of symlink...

@renaud
Copy link
Copy Markdown
Collaborator Author

renaud commented Mar 18, 2026

If i install stow (brew install stow), install fails with

opengrader ֎ uv run install.py
Setting up config...
  Created config directory: /Users/ren/.config/opencode
  Loaded existing config: /Users/ren/.config/opencode/opencode.json
  Saved config to: /Users/ren/.config/opencode/opencode.json

Installing files...
WARNING! stowing skills would cause conflicts:
  * existing target is not owned by stow: .DS_Store
  * existing target is not owned by stow: exam-markdown-to-yaml/SKILL.md
  * existing target is not owned by stow: export-exam-to-pdf/SKILL.md
  * existing target is not owned by stow: export-exam-to-pdf/scripts/generate_pdfs.py
  * existing target is not owned by stow: import-student-answers/SKILL.md
  * existing target is not owned by stow: import-student-answers/scripts/import_students_response.py
  * existing target is not owned by stow: import-unit-tests/SKILL.md
  * existing target is not owned by stow: moodle-to-yaml/SKILL.md
  * existing target is not owned by stow: pregrade/SKILL.md
  * existing target is not owned by stow: skill-creator/LICENSE.txt
  * existing target is not owned by stow: skill-creator/SKILL.md
  * existing target is not owned by stow: skill-creator/agents/analyzer.md
  * existing target is not owned by stow: skill-creator/agents/comparator.md
  * existing target is not owned by stow: skill-creator/agents/grader.md
  * existing target is not owned by stow: skill-creator/assets/eval_review.html
  * existing target is not owned by stow: skill-creator/eval-viewer/generate_review.py
  * existing target is not owned by stow: skill-creator/eval-viewer/viewer.html
  * existing target is not owned by stow: skill-creator/references/schemas.md
  * existing target is not owned by stow: skill-creator/scripts/__init__.py
  * existing target is not owned by stow: skill-creator/scripts/aggregate_benchmark.py
  * existing target is not owned by stow: skill-creator/scripts/generate_report.py
  * existing target is not owned by stow: skill-creator/scripts/improve_description.py
  * existing target is not owned by stow: skill-creator/scripts/package_skill.py
  * existing target is not owned by stow: skill-creator/scripts/quick_validate.py
  * existing target is not owned by stow: skill-creator/scripts/run_eval.py
  * existing target is not owned by stow: skill-creator/scripts/run_loop.py
  * existing target is not owned by stow: skill-creator/scripts/utils.py
All operations aborted.
Traceback (most recent call last):
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 106, in <module>
    main()
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 102, in main
    install_stow()
  File "/Users/ren/switchdrive/backup/dev/_HEVS/opengrader/install.py", line 66, in install_stow
    subprocess.run(
  File "/Users/ren/miniconda3/lib/python3.12/subprocess.py", line 573, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['stow', '-t', '/Users/ren/.config/opencode/skills', '-d', '/Users/ren/switchdrive/backup/dev/_HEVS/opengrader', 'skills']' returned non-zero exit status 1.

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

Successfully merging this pull request may close these issues.

1 participant