TheAxeDude / ZiniGo

Utility to backup magazines from the Zinio service as PDF, bypassing/Removing their DRM.
MIT License
49 stars 9 forks source link

cmd.Run() failed with exec: "C:" file does not exist #15

Closed hezhong2124 closed 3 years ago

hezhong2124 commented 3 years ago

Chrome's path has been set correctly, and the program is running as an administrator, but an error occurred when starting to download the issue: cmd.Run() failed with exec: "C:" file does not exist. You should retry this page.Source

TheAxeDude commented 3 years ago

Hi,

Can you please paste the full command that is failing? It should be printed just before the error - then we can dig in. My guess is a weird character, or a space.

hezhong2124 commented 3 years ago

My Config.json file: { "username":"Username", "password":"Password", "chromepath":"C:\Program Files\Google\Chrome\Application\chrome.exe" }

Running the program: Config file loaded Username taken from config file password taken from config file chromepath taken from config file Starting the application Loading HTML template Resolved working directory to D:\ZinoGo-master\built Checking if issue exists: D:\ZiniGo-master\built/issue/xxxxx.pdf Downloading issue: xxxxx source (SVG file URL) ID: 0 [C --headless --disable-gpu --print-to-pdf=D:\ZiniGo-master\built/issue/xxxx_1.pdf --no-margins D:\ZiniGo-master\built/issue/xxxx_1.html cmd.Run() failed with exec: "C:": file does not exist. You should retry this page source (SVG file URL) ... so I cannot download any SVG file, the "issue" folder is empty.

TheAxeDude commented 3 years ago

Can you tweak your "chromepath":

"chromepath":"C:\Program Files\Google\Chrome\Application\chrome.exe"

(Replace single slashes with double slashes).

hezhong2124 commented 3 years ago

Problem solved, the program runs normally after the modification, thanks a lot