Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Bug]: (Windows 10) Running `fabric --gui` results in an error

Open Gerkinfeltser opened this issue 1 year ago • 0 comments

What happened?

Thanks again so much for the interesting project! I'm getting a FileNotFoundError when I attempt to run fabric --gui

PS C:\Users\xxx\> fabric --gui
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\xxx\.local\bin\fabric.exe\__main__.py", line 7, in <module>
  File "C:\Users\xxx\AppData\Local\pipx\pipx\venvs\fabric\Lib\site-packages\installer\client\cli\fabric.py", line 100, in main
    run_electron_app()
  File "C:\Users\xxx\AppData\Local\pipx\pipx\venvs\fabric\Lib\site-packages\installer\client\cli\utils.py", line 774, in run_electron_app
    subprocess.run(['npm', '--version'], check=True,
  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\ProgramData\anaconda3\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Furthermore,

  • both Node & npm are installed (as well as electron) & the commands are in my user's path.
  • Running the fabric --gui command gives me the same error when in the fabric venv or not.
  • I'm running fabric on Windows 10.

Thanks again!

Version check

  • [X] Yes I was.

Relevant log output

No response

Relevant screenshots (optional)

No response

Gerkinfeltser avatar Apr 27 '24 15:04 Gerkinfeltser