How to open slimerjs without display? - ubuntu-16.04

My environment:
Ubuntu 16.04, slimerjs 1.0.0, firefox 58.0, root.
I'm trying to execute a js-scenario, but I got an error:
Error: no DISPLAY environment variable specified
Got the same error in phantomjs, and it was solved by:
export QT_QPA_PLATFORM=offscreen
But on slimerjs it had no effect.

Related

I can't add pgsql PDO Driver in MAMP on Mac Big Sur

I have installed MAMP and PostgreSQL with PGAdmin4, but I'm having some problems.
I'm getting a psql "command not found error" in my terminal. I have added export PATH=/Library/PostgreSQL/10/bin:$PATH into ~/.bash_profile, but whenever I reopen the terminal, I get the same error again.
Whenever I try to execute composer or php artisan in my Laravel project I get the below errors, but I'm still able to migrate database:
Warning: PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/local/lib/php/pecl/20180731/pdo_pgsql (dlopen(/usr/local/lib/php/pecl/20180731/pdo_pgsql, 9): image not found)
Warning: PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/local/lib/php/pecl/20180731/pgsql (dlopen(/usr/local/lib/php/pecl/20180731/pgsql, 9): image not found)
Getting a "driver not found" error whenever trying to browse the project and in PDO Drivers list in phpinfo(), mysql and sqlite available, but pgsql is not available.
MAMP
PostgreSQL 10
PHP: 7.3.21
OS: MAC Big Sur
I had the same issue and when I looked in my php.ini file, I saw that my extensions folder was pointed to the wrong location:
extension_dir = "/Applications/MAMP/bin/php/php7.4.2/lib/php/extensions"
But I don't have a matching directory for php7.4.2 - I use php7.4.9, and confirmed the extension exists in that folder. To fix it for me, I just had to change the above line in my php.ini file to:
extension_dir = "/Applications/MAMP/bin/php/php7.4.9/lib/php/extensions"
And then all was good for me.

Running vscode in WSL throws fatal error version mismatch between v8 binary and snapshot

Whenever I run the code-insiders command inside WSL, I get the below error:
~/dev ᐅ code-insiders .
#
# Fatal error in , line 0
# Version mismatch between V8 binary and snapshot.
# V8 binary version: 7.7.299.13-node.16
# Snapshot version:
# The snapshot consists of 327888 bytes and contains 0 context(s).
#
#
#
#FailureMessage Object: 0x7fff0aac4bc0Illegal instruction
This has started happening spontaneously. I was using code-insiders for a while before in WSL without such problems.
What fixed it for me was closing a running vscode insiders window. This ran the automatic update of vscode itself (it shows a small gray window with progress bar). After that, running code-insiders . in WSL terminal downloaded the new vscode server version and then I could start code-insiders in WSL normally.

Emacs is unable to run code in swift-mode since upgrading to Catalina

When I try to run code in emacs swift-mode with C-c C-z, I receive the following message:
'warning: unable to find and load segment named '__OBJC_RO' at
0x7fff6e030000 in '/usr/lib/libobjc.A.dylib' in macosx dynamic loader
plug-in.
warning: unable to find and load segment named '__OBJC_RW' at
0x7fff919d9080 in '/usr/lib/libobjc.A.dylib' in macosx dynamic loader
plug-in.'
I am running emacs version 26.3 and macOS version 10.15
Does anybody have a resolution for this issue?

Trouble compiling LiquidFun Paint - "Found SWIG , requires 2.0.11 or above. Stop"

I am having trouble compiling LiquiFun Paint
I am using Eclipse. I receive
Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException:
Cannot run program "cygpath": CreateProcess error=2, The system cannot
find the file specified
I am using Windows 8.1. I have set the following Environment Variables in Eclipse:
LIQUIDFUN_SRC_PATH
NDKROOT
SWIG_BIN
(there is a value for CYGWIN of nodosfilewarning)
I get the folling error in Eclipse:
C:\ndk\ndk-build.cmd" all process_begin: CreateProcess(NULL,
C:\swigwin-2.0.1 -version, ...) failed.
C:\liquidfun-master\liquidfun\Box2D/../Box2D/swig/jni/Android.mk:62:
*** Found SWIG , requires 2.0.11 or above. Stop.
I have installed SWIG 3.0.5 and tried 2.0.1. Both result in the same error above.
In addition to the above error there are compiler errors for
import com.google.fpl.liquidfun.World;
it cannot find that import.
I am using Build Command ${NDKROOT}/ndk-build.cmd
I am using r10e (64-bit) NDK
Unable to launch cygpath. Is Cygwin on the path?] java.io.IOException: Cannot run program "cygpath": CreateProcess error=2, The system cannot find the file specified
Try running your build in a cygwin shell? Something like:
C:\cygwin\bin\bash /cygdrive/c/ndk/ndk-build.cmd
CreateProcess(NULL, C:\swigwin-2.0.1 -version, ...)
What is your SWIG_BIN set to? It looks like it's set to "C:\swigwin-2.0.1" but should probably be set to something like "C:\swigwin-2.0.1\swig.exe"

selenium.common.exceptions.WebDriverException: Message: Can not connect to the 'chromedriver' error when using Python3 on Windows OS

I'm using a Windows 7 OS and trying to run a selenium webdriver test using python from my Eclipse+ PyDev IDE. I have downloaded the Google Chrome driver and added it to my path. I've also added the chromedriver.exe to C:\Python34\Scripts. I have tried the following:
from selenium import webdriver
driver = webdriver.Chrome()
I get the error message
selenium.common.exceptions.WebDriverException: Message: Can not connect to the 'chromedriver'
when I try to run my script. I've also tried the following:
driver = webdriver.Chrome(executable_path="C:\folder\chromedriver.exe")
I get a message saying file cannot be found. If I try the following from the terminal:
driver = webdriver.Chrome()
The browser is launched so it works from the terminal. The issue is running my script from Eclipse.
I work with this on Ubuntu but i came across the same kind of error, the problem was that i didn't have a sym-link to the chrome driver file,
In Ubuntu it is
sudo ln -s ~/selgrid/chromedriver /usr/local/bin/chromedriver
This might help
http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
Good Luck!