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

p7zip dependency on macOS #241

Open
grosbecyk opened this issue Dec 3, 2024 · 0 comments
Open

p7zip dependency on macOS #241

grosbecyk opened this issue Dec 3, 2024 · 0 comments

Comments

@grosbecyk
Copy link

Running vsrepo.py withtout p7zip installed on mac gives this error:

Fetching: https://github.com/Stefan-Olt/vs-plugin-build/releases/download/vsplugin/com.holywu.curve/r3/darwin-aarch64/2024-09-30T20.52.46%2B00.00Z/Curve-r3-darwin-aarch64.zip
Traceback (most recent call last):
  File "/Users/admin/Git/vsrepo/./vsrepo.py", line 926, in <module>
    res = install_package(name)
  File "/Users/admin/Git/vsrepo/./vsrepo.py", line 718, in install_package
    fres = install_files(p)
  File "/Users/admin/Git/vsrepo/./vsrepo.py", line 682, in install_files
    result = subprocess.run([cmd7zip_path, "e", "-so", tfpath, fn_props[0]], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 554, in run
    with Popen(*popenargs, **kwargs) as process:
         ~~~~~^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1036, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        pass_fds, cwd, env,
                        ^^^^^^^^^^^^^^^^^^^
    ...<5 lines>...
                        gid, gids, uid, umask,
                        ^^^^^^^^^^^^^^^^^^^^^^
                        start_new_session, process_group)
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.13/3.13.0_1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/subprocess.py", line 1966, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '7z'

Installing p7zip using brew install p7zip fixes the issue.

Shouldn't this be documented?

Thanks

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