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

Windows 10 Python 3.[WinError 2] The system cannot find the file specified #49

Closed
derry43 opened this issue Apr 28, 2022 · 3 comments
Closed

Comments

@derry43
Copy link
Contributor

derry43 commented Apr 28, 2022

OS: Windows 10
python version: 3.9.11
glpi-project/tools tag: 0.4.5
plugin-release version: 1.0.5 (not helpful)

Note: plugin-release script version has not changed since glpi-project/tools tag 0.1.7. The plugin-release script version is still 1.0.5, despite numerous modifications to fix issues with python version compatibility.

All occurrences of subprocess.Popen in tools/plugin-release require additional argument shell=True otherwise we get the following error below on Windows with python 3.9.x.

Adding vendor libraries
Traceback (most recent call last):
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 754, in <module>
    main()
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 751, in main
    _do_build(repo, buildver)
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 320, in _do_build
    prepare(plugin_name, archive)
  File "C:\Users\105061136\Documents\GitHub\ldapcomputers\vendor\glpi-project\tools\tools\plugin-release", line 417, in prepare
    p1 = subprocess.Popen(
  File "C:\Users\105061136\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\105061136\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
@cedric-anne
Copy link
Member

Hi,

Maybe related to #44.

Could you comment the PR, or propose another one ?

Regards

@derry43
Copy link
Contributor Author

derry43 commented Apr 28, 2022

Unrelated to #44. Raised a PR.

@cedric-anne
Copy link
Member

Fixed by 540fdc0.

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 a pull request may close this issue.

2 participants