[solved] phantomjs issue in debian 10

Kernels, Network, and Services configuration
Post Reply
Message
Author
maxbre
Posts: 73
Joined: 2014-11-08 16:44

[solved] phantomjs issue in debian 10

#1 Post by maxbre »

my configuration system:

Code: Select all

uname -a
Linux max-debian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
my installed version, from official repository:

Code: Select all

phantomjs --version
2.1.1
the reproducible issue:

Code: Select all

phantomjs hello.js 
Hello, world!
TypeError: Attempting to change the setter of an unconfigurable property.
TypeError: Attempting to change the setter of an unconfigurable property.
where the hello.js file content is very simply:

Code: Select all

console.log('Hello, world!');
phantom.exit();
here one of the many references on the web about this issue:
https://github.com/ariya/phantomjs/issues/15360

and all about started from this specific issue within an R package (mapview), but unfortunately the solution here proposed did not work for myself:
https://github.com/r-spatial/mapview/issues/249

did someone else bumped into this annoying issue and how eventually managed to fix it?

I need that fully functional R package and in particular the use of the function mapshot(), which is failing in my system (debian 10)
https://www.rdocumentation.org/packages ... cs/mapshot

the weird thing is that in debian 9 all this is apparently working fine (no errors)

thanks
Last edited by maxbre on 2021-07-19 14:20, edited 1 time in total.

maxbre
Posts: 73
Joined: 2014-11-08 16:44

Re: [closed] phantomjs issue in debian 10

#2 Post by maxbre »

finally I managed to find a proper solution

here a quick fix for phantomjs in debian 10 buster
(to be noted JUST for debian 10 buster)

https://github.com/kelaberetiv/TagUI/issues/787


and here
https://gist.github.com/julionc/7476620

open /etc/ssl/openssl.cnf and comment out the line under [default_conf] at the end of the config file
#ssl_conf = ssl_sect

Post Reply