How to solve Puppeteer: failed to launch the browser process - puppeteer

Installed Puppeteer using the command : npm install puppeteer
OS : CentOs7 3.10.0-693.11.6.el7.x86_64
When I tried to run the file, I am getting the following error
(node:14216) UnhandledPromiseRejectionWarning: Error: Failed to launch the browser process!
/opt/xyz/node-v14.16.0-linux-x64/lib/node_modules/npm/node_modules/puppeteer/.local-chromium/linux-856583/chrome-linux/chrome: error while loading shared libraries: libxkbcommon.so.0: cannot open shared object file: No such file or directory
How to solve this error ?

It says what is missing:
error while loading shared libraries: libxkbcommon.so.0
You need to have the library on your system. It seems this is the one, you might be able to install it with your package manager:
# yum install libxkbcommon-x11

Related

Can''t find the right ethernet library in Arduino IDE for Arduino Nano RP2040 Connect

Searching revealed there is a library for the ethernet chip onboard for Arduino Nano RP2040 Connect, and docs say to search for it in the mBed. I chose the only board id available that was connected. I get the following error when I check the code in the IDE:
/private/var/folders/hc/39cys7xx68s4vd7gxrchyxn80000gn/T/.arduinoIDE-unsaved202285-19994-p3tosu.z75d/sketch_sep5a/sketch_sep5a.ino:2:10: fatal error: WiFiNINA.h: No such file or directory
#include <WiFiNINA.h>
^~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: WiFiNINA.h: No such file or directory
Update to the latest version of Arduio IDE (2.0.2 as of now) and install the WiFiNINA library.
Once the library is installed, re-compile, and the error "Compilation error: WiFiNINA.h: No such file or directory" should get resolved.

Unable to install couchbase in python on macOs

I am trying to install couchbase on my macOS. I am using pip3 install couchbase to install it.
And I am getting error as
`note: '__uint128_t' declared here
/Library/Developer/C
ommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/bucket.c:18:
In file included from src/pycbc.h:45:
In file included from src/python_wrappers.h:20:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/bucket.c:18:
In file included from src/pycbc.h:45:
In file included from src/python_wrappers.h:20:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/private/tmp/pip-install-46t38raq/couchbase_25d29b67ce814e2badeb9f2deaba5d2c/cbuild_config.py:271: UserWarning: Adding /usr/local to lib search path for OS X
warnings.warn('Adding /usr/local to lib search path for OS X')
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for couchbase Failed to build couchbase
ERROR: Could not build wheels for couchbase which use PEP 517 and cannot be installed directly
I also tried pip3 install --no-use-pep517 couchbase then also I am getting could not build a wheel for couchbase
I have upgraded my pip to the latest. I have python3.8. I also installed pep517.

Winexe installation in Linux

I am trying to compile and build winexe. I have downloaded the samba source and ran the following command to compile the winexe.
./waf configure --samba-dir=../../samba --samba-inc-dirs=../../samba/ --samba-lib-dirs=../../samba/
I am getting the following error. Please suggest me to resolve the error.
[3326/3810] Compiling default/source/smb_static/smb_static.objlist.empty.c
Waf: Leaving directory `/root/samba/bin'
Build failed: could not find 'source/smb_static/smb_static.objlist.empty.c' for
{task: cc smb_static.objlist.empty.c -> smb_static.objlist.empty_2.o}
Checking for library smb_static : not found
Build of static winexe : disabled
Cannot continue! Please either install Samba shared libraries and re-run waf, or download the Samba source code and re-run waf with the "--samba-dir" option.
(complete log in /root/winexe/source/build/config.log)
execfile is deprecated,
edit the file "smb_static/wscript",
remove the line with execfile and use exec(open("wscript").read()) instead

Installing mysql on Yesod

I successfully created a Yesod app (using cabal-dev) and launching it.
but I have been trying to use mysql with yesod, but I always keep getting the following error message after running the command " cabal-dev install yesod-platform, cabal-dev install yesod-bin; cabal-dev install " :
Installed yesod-1.2.2.1
cabal: Error: some packages failed to install:
Youne-0.0.0 depends on pcre-light-0.4 which failed to install.
mysql-0.1.1.5 failed during the configure step. The exception was:
ExitFailure 1
mysql-simple-0.2.2.4 depends on pcre-light-0.4 which failed to install.
pcre-light-0.4 failed during the configure step. The exception was:
ExitFailure 1
persistent-mysql-1.2.1 depends on pcre-light-0.4 which failed to install.
I don't know what's going on.
There was a problem installing pcre-light, most likely due to missing system libraries. Try running just cabal install pcre-light-0.4 and see if that output is more helpful.

lazarus gecko webbrowser

I'm trying to install the gecko package in freepascascal using this guide: http://wiki.lazarus.freepascal.org/GeckoPort_version2#Win32_widgetset
Unfortunatly when I run C:\lazarus\fpc\2.6.0\bin\i386-win32\fppkg.exe install gecko I get:
Install dependencies An unhandled exception occurred at $004377D5 :
EProcess : Failed to execute fpc.exe -iVTPTO : 2
$004377D5
$0040F953
$00412B36
$004138D5
$00414553
$00413AE5
$0041568B
$0041E3E3
The FPC Package tool encountered the following error: [lazmkunit]
Execution of FPMake build failed
Put c:\lazarus\fpc\2.6.0\bin\i386-win32 in your PATH.
fppkg queries other FPC binaries to retrieve version and target info, and to compile the result (as fppkg downloads source, and then compiles it on host).