Impossible to launch Puppeteer with node-red on Raspberry - puppeteer

I have an issue when I try to launch puppeteer with my Raspberry using node-red. I am using the node-red-contrib-puppeteer-new library and this error code appears :
Error: Failed to launch the browser process!
/home/pi/.node-red/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux/chrome: 16: Syntax error: ")" unexpected
TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md
What can I do to solve this issue ?
I have tried to modify the library without success
Best regards

sudo apt install chromium-browser chromium-codecs-ffmpeg
copy chromium-browser from /usr/bin/ to /.nodered/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux
go to /.nodered/node_modules/puppeteer/.local-chromium/linux-982053/chrome-linux
delete chrome
rename chromium-browser to chrome

Related

ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported

I'm trying to open google chrome from terminal in Ubuntu but after submiting google-chrome I'm getting this error:
ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported
I've installed it by following this tutorial: https://itsfoss.com/install-chrome-ubuntu/
I've looked at this but it didn't help me How to open google chrome from terminal?
Does anyone know how I can solve this issue?
Thanks!
I just ran
sudo apt list --upgradable
Chrome was one of the upgradable list, then ran the command
sudo apt upgrade
I had the same problem, updating the GPU drivers resolved the problem.
I installed Chromium via Snap instead (sudo snap install chromium). I get the same error message, but the browser appears to be running correctly anyway. I'd still like to know what it means and how to fix it....

error using selenium chromedriver on windows 7 64 bit

I'm having trouble running Selenium with chromeDriver on Windows 7. I'm getting the following error:
Jan 27, 2016 11:52:57 AM org.openqa.selenium.os.UnixProcess checkForError
SEVERE: org.apache.commons.exec.ExecuteException:
Execution failed (Exit value: -559038737. Caused by java.io.IOException:
Cannot run program "C:\testproject\target\resources\chromedriver.exe"
(in directory "."): CreateProcess error=193, %1 is not a valid Win32 application)
Double clicking the driver outside of eclipse gives a windows error (not a valid Win32 application)
Is there some trick to getting it to work on a 64bit Windows 7 environment?
Maybe the ChromeDriver download was corrupted by a network error or something, so the chromedriver.exe is incomplete! Try downloading ChromeDriver again from https://sites.google.com/chromium.org/driver/
Killing chromedriver.exe instances from command prompt worked for me.
Before deleting current chromedriver and installing new .exe, you can try executing
Taskkill /F /IM chromedriver.exe
After a bit of reading around, it seems the ChromeDriver executable needs to be on your PATH. It's not enough to just point webdriver.chrome.driver at it, as presumably other processes need to be able to find it.
See https://sites.google.com/a/chromium.org/chromedriver/getting-started (under "Help WebDriver find the downloaded ChromeDriver executable"), also https://splinter.readthedocs.org/en/0.1/setup-chrome.html.
I meet the same error today, before today the selenium run correctly. I find this error is caused by my computer antivirus software, after closing antivirus software all is well.
I got this error due to properties file not exists as i am using it to store ChromeDriver.exe path.

Installing Octave: Bad Interpreter: No Such File or Directory

I'm trying to install Octave according to the instructions here:
http://wiki.octave.org/Octave_for_MacOS_X
using Homebrew.
I have the XCode command line tools installed. I checked and I also have HomeBrew installed. I just installed XQuartz.
I try to run brew tap homebrew/science, and I get:
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0
Do I need to do this in a certain folder?
Not sure why I'm getting this issue.
Thanks for the help,
bclayman

Visual Studio 2013 native cordova app build error

I just installed and repaired my VS2013 to build Native Cordova App. I have also installed the latest version of NodeJS but whenever I am trying to build the Application It gives me an error. I am uploading an image for more details on error as I believe image provide more info than text.
Posting error details if error is not clear in an image
Cannot find module 'q'.
The command ""C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" prepare --platform Android --configuration Debug --projectDir . --projectName "BlankCordovaApp1" --language "en-US"" exited with code 8. C:\Users\nnnc\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets
I have advanced a little bit more but having hard time to run the application I have to manually installed all the required module. but now whenever I am running my project I get an error of web page is not available. please look at the attached image again.
I found that running npm install from within /vs-mda/ solved all my problems.
found the fix and that Involved manually loading packages like q via node js and in the end the fix for web page is not available was that ripple has changed and now we should not add it as an extension via chrome. it should be done via node js as well as below
npm install ripple -g
but before doing that delete it from chrome if you have got it otherwise just run the command.
Regards

Chromedriver failing to launch or connect

Up until today, I have been using chromedriver to drive my watir-webdriver tests, and I have had no problems. My server still works and runs tests on the same version of the chromedriver and chrome.
I have tried updating to the latest chromedriver, which is the chromedriver 2 experimental build. This fails due to what I can only assume are still bugs being worked out of it.
I have also tried rolling back to the previous version of chromedriver with no success.
If anyone has any experience with this, I would really appreciate your expertise. I am sure it will turn out to be something simple I have overlooked.
gem versions:
watir-webdriver (0.6.2)
selenium-webdriver (2.29.0)
cucumber (1.2.1)
trace from the chromedriver below
Started ChromeDriver port=9517 version=26.0.1383.0
log=C:\Projects\oms_acceptance_tests\src\chromedriver.log
[6136:5300:0212/122320:ERROR:master_preferences.cc(110)] Failed to read master_preferences file at C:\Program Files (x86)\Google\Chrome\Application\master_preferences. Falling back to default preferences.
[6136:5300:0212/122320:ERROR:gpu_info_collector_win.cc(82)] Can't retrieve a valid WinSAT assessment.
test\automation\proxy_launcher.cc(107): error: Value of: app_launched
Actual: 5
Expected: AUTOMATION_SUCCESS
Which is: 0
Error while awaiting automation ping from browser process
[0212/122321:ERROR:proxy_launcher.cc(556)] Failed to ConnectToRunningBrowser
[0212/122321:ERROR:automation_proxy.cc(319)] Channel error in AutomationProxy.
Unable to either launch or connect to Chrome. Please check that ChromeDriver is up-to-date. Using Chrome binary at: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe (Selenium::WebDriver::Error::UnknownError)
I would trying downloading newer version of chromedriver. Worked for me when I experienced similar issues.
To get rid of the gpu winsat error, try to update your display adapter.