Open suban1440 opened 4 years ago
Could you try with the latest phantomjs
stable build 2.1.1 ?
https://bitbucket.org/ariya/phantomjs/downloads/
Hi, I am having the same problem as @suban1440 , and my phantomJs version is 2.1.1 @maaaaz . Anybody solved this problem yet?
Can you launch the webscreenshot
command with the -vv
option; then copy/paste the "raw" command to be launched (like <path to phantomjs.exe> -debug ...
) ?
Hi, I wasn't able to use the '-vv' option, but I realized that it is not listed in the webscreenshot.py menu too.
'webscreenshot.py: error: Please specify a valid input file or a valid URL'
Thats what I get from launching the 'python webscreenshot.py -vv'
Hi, I had the same error msg on my Win10. I think it was the SPACE in my folder name. I tried to start the script in a folder without a SPACE and it worked for me.
@gsneijd, could you launch the command you tried with the space in folder, adding the -vv
option to see the raw command executed (the one calling the renderer) ?
@maaaaz Sure! The RAW command works with quotes around the screenshot path
(env) O:\Eigene Dateien\Web-Projekte\webscreenshot>chromium.exe --allow-running-insecure-content --ignore-certificate-errors --ignore-urlfetcher-cert-requests --reduce-security-for-testing --no-sandbox --headless --disable-gpu --hide-scrollbars --incognito -screenshot="O:\Eigene Dateien\Web-Projekte\webscreenshot\screenshots\https_www.mynode.at_443.png" --window-size=1200,800 https://www.mynode.at:443 webscreenshot-raw-output.txt
@gsneijd great, but that was your first try ? with the screenshot output folder containing a space ?
Weird that it didn't work, I remember designing that function to support Windows, and space wasn't needed. I have to investigate !
I've had already problems with the space character in other application, so that was my first try. I started the script in O:\webscreenshot, and it did also work.
i hope it helps you! thanks for you great script, it saved me a lot of work :)
I have investigated and yes, there is the infamous issue with Python + subprocess + whitespaces in paths
I don't have an easy solution, I will see if I want to include (or not) the mslex
third-party lib.
In the meantime, no whitespace in paths when using webscreenshot
on Windows :)
Hi have you found the solution to the whitespaces problem?
Hi have you found the solution to the whitespaces problem?
only by adding the folder without spaces directly in C:
Hi
I got a Error message.
How solve?
My environment: