Closed rtalon83 closed 8 years ago
Also got that one on Windows 10 in two scenarios:
-When lepton is called without .exe
lepton file.jpg
=> Failed To start subprocess with command line OS_ERROR
-When lepton is included in path and called from another directory
lepton.exe file.jpg
=> Failed To start subprocess with command line OS_ERROR
Does this happen if you drag and drop a file onto the eye?
I mean exe
No problem with drag and drop.
ya I don't know what the difference is between drag and drop and the other--but for now can you just use drag + drop?
Interesting to note that there isn't this problem via powershell. Via cmd, you would have to include lepton in the working dir and call it with .exe. For now, that's fine for me.
I just hope that rtalon83 problem was the same because I kinda took over his issue . @rtalon83 You confirm that it works when you call it with .exe or with a drag and drop?
Yes, it works with a drag and drop. thk!
Just ran into this problem on Windows 7. The problem seems to be the argv[0] parameter in CreateProcess of the start_subprocess method (io_util.cc). If this is the full path and .exe then it works, otherwise OS_ERROR. Maybe wise to call GetFullPathName on argv[0] prior to calling CreateProcess.
lepton v1.0-08c52d9280df3d409d9246df7ff166dd94628730 Failed To start subprocess with command line OS_ERROR