yashlamba / yashlamba/handwrite
FileNotFoundError: [WinError 2] The system cannot find the file specified
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 543
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
PS C:\Users\Gayashan\Desktop\hand> handwrite .\sample.jpg .\asd.ttf
Traceback (most recent call last):
File "C:\Users\Gayashan\miniconda3\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Gayashan\miniconda3\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Users\Gayashan\miniconda3\Scripts\handwrite.exe\__main__.py", line 7, in <module>
File "C:\Users\Gayashan\miniconda3\lib\site-packages\handwrite\cli.py", line 56, in main
converters(
File "C:\Users\Gayashan\miniconda3\lib\site-packages\handwrite\cli.py", line 34, in converters
run(sheet, output_directory, directory, config, metadata)
File "C:\Users\Gayashan\miniconda3\lib\site-packages\handwrite\cli.py", line 14, in run
SVGtoTTF().convert(characters_dir, output_directory, config, metadata)
File "C:\Users\Gayashan\miniconda3\lib\site-packages\handwrite\svgtottf.py", line 28, in convert
subprocess.run(
File "C:\Users\Gayashan\miniconda3\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\Gayashan\miniconda3\lib\subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Gayashan\miniconda3\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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with handwrite/svgtottf.py at convert(), specifically the subprocess.run call shown in the traceback, and reproduce the command on Windows. Trace which executable is being launched and verify the expected behavior when it is unavailable; done means the reported invocation no longer raises WinError 2 or clearly reports the missing requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100