Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Executing in Windows 7 #39

Closed
rtalon83 opened this issue Jul 19, 2016 · 8 comments
Closed

Executing in Windows 7 #39

rtalon83 opened this issue Jul 19, 2016 · 8 comments

Comments

@rtalon83
Copy link

lepton v1.0-08c52d9280df3d409d9246df7ff166dd94628730
Failed To start subprocess with command line OS_ERROR

@Maxime-J
Copy link

Maxime-J commented Jul 19, 2016

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

@danielrh
Copy link
Contributor

Does this happen if you drag and drop a file onto the eye?

@danielrh
Copy link
Contributor

I mean exe

@Maxime-J
Copy link

No problem with drag and drop.

@danielrh
Copy link
Contributor

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?

@Maxime-J
Copy link

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?

@rtalon83
Copy link
Author

Yes, it works with a drag and drop. thk!

@Text-Mode
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants