Shiny server: Fatal error: unable to open the base package - shiny

I just installed shiny server and I get an error when I load the shiny web page:
An error has occurred. The application failed to start shows on the right side of the screen.
Then I checked the log and shows:
su: ignore --preserve-environment, it's mutually exclusive to --login.
Fatal error: unable to open the base package
When I type su - shiny and I try to run R I also get the Fatal error: unable to open the base package, so I guess there is a problem with R.
I can load R when I'm root or R user and apparently R works fine.
Any idea? Could it be a PATH problem? If yes, I couldn't find it out.
Thanks in advance.

Related

What is "no entry for app..." error in flatpak?

I installed elementary OS. I was trying to download apps with flatpak. I downloaded flatpakref files into "~/Downloads/flatpak/" directory. Then i wrote sudo flatpak install com.discordapp.Discord.flatpakref.
I got an error like this
error: No entry for app/com.discordapp.Discord/x86_64/stable in remote 'freedesktop' summary flatpak cache
Then i thought that the discord package is broken. I tried with Atom text editor.
Then i got this error
error: No entry for app/io.atom.Atom/x86_64/stable in remote 'freedesktop' summary flatpak cache.
I searched about the error but i couldn't find anything. What is this error and how can i fix this?

chrome browser is not opening with robot framework

getting error : WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed
getting above error while running a robot script:
It is a simple code to open you tube in chrome browser.
it looks like this:
*** Settings ***
Library SeleniumLibrary
*** Variables ***
${Browser} Chrome
${URL} https://www.youtube.com/
*** Test Cases ***
TC1
Open Browser ${URL} ${Browser}
Input Text name:search_query ted talk
Click Button id:search-icon-legacy
It is on ubuntu
using python2.7
robotframework==3.0.2
robotframework-mqttlibrary==0.7.0
robotframework-selenium2library==1.8.0
robotframework-seleniumlibrary==4.3.0
ChromeDriver 80.0.3987.106
I tried updating chrome and chrome driver also.
I don't know what am i doing wrong,
please help.
You are trying with robotframework-seleniumlibrary==4.3.0 & robotframework==3.0.2
Update the robotframework-seleniumlibrary 4.3.0 to 3.0.1
pip install robotframework-seleniumlibrary==3.0.1
Add capabilities
${chrome_options}= Evaluate sys.modules['selenium.webdriver'].ChromeOptions() sys, selenium.webdriver
Call Method ${chrome_options} add_experimental_option w3c ${False}
Call Method ${chrome_options} add_argument no-sandbox
Call Method ${chrome_options} add_argument disable-setuid-sandbox
Call Method ${chrome_options} add_argument disable-dev-shm-usage
Call Method ${chrome_options} add_argument disable-single-click-autofill
Wait Until Keyword Succeeds 2x 1s
... Create WebDriver Chrome alias=${Browser} chrome_options=${chrome_options}
Go To ${URL}
Input Text name:search_query ted talk
Click Button id:search-icon-legacy

Not able to install sbt in windows 7

I installed sbt in my windows 7 machine from http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Windows.html using msi installer
After installing if i go to Command prompt and while checking the installed sbt version i get the below error
C:\>sbt --version
Getting org.fusesource.jansi jansi 1.11 ...
:: problems summary ::
:::: WARNINGS
module not found: org.fusesource.jansi#jansi;1.11
==== local: tried
C:\Users\rajasure\.ivy2\local\org.fusesource.jansi\jansi\1.11\ivys\ivy
.xml
-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:
C:\Users\rajasure\.ivy2\local\org.fusesource.jansi\jansi\1.11\jars\jan
si.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1
.11.pom
-- artifact org.fusesource.jansi#jansi;1.11!jansi.jar:
https://repo1.maven.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1
.11.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.fusesource.jansi/j
ansi/1.11/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.fusesource.jansi
/jansi/1.11/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.fusesource.jansi#jansi;1.11: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Connection timed out: connect url=https://repo1.mav
en.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.pom
Server access Error: Connection timed out: connect url=https://repo1.mav
en.org/maven2/org/fusesource/jansi/jansi/1.11/jansi-1.11.jar
Server access Error: Connection timed out: connect url=https://repo.type
safe.com/typesafe/ivy-releases/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
Server access Error: Connection timed out: connect url=https://repo.scal
a-sbt.org/scalasbt/ivy- snapshots/org.fusesource.jansi/jansi/1.11/ivys/ivy.xml
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.fusesource.jansi#jansi;1.11: not found
Error during sbt execution: Error retrieving required libraries
(see C:\Users\suren\.sbt\boot\update.log for complete log)
Error: Could not retrieve jansi 1.11
Could somebody help me on fixing this error? I really need some help on this.
I had the same problem! this solved!
" Looks like the dependency manager has a problem with the non-ASCII characters in your user name.
Try adding -Dsbt.global.base=C:/some/other/path to the command line of the SBT process. This will relocate files from the default location of %USERHOME%/.sbt. "

shiny (Rstudio) package for R - no able to install on Mavericks

I am about to begin a project with Shiny (by RStudio). When I try to install the shiny package using the console install.packages("shiny"), I get the following error message:
trying URL 'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/shiny_0.10.1.tgz'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL'http://cran.rstudio.com/bin/macosx/mavericks/contrib/3.1/shiny_0.10.1.tgz'
Warning in install.packages :
download of package ‘shiny’ failed
I have tried to install it from the drop down menu in RStudio but have encountered the same problem. Any thoughts as to what is going on?
I am working on Mac, with the latest version of Mavericks (R version is 3.1.1).
Thanks,
Brian
Try a different CRAN mirror. The error indicates that the file was not found on the CRAN server
chooseCRANmirror()
shiny has just been updated 2014-10-01 so the changes may not have propagated down to all mirrors yet.

Python script hangs on ubuntu server using selenium firefox driver

I'm trying to take screenshots of some webpages. I opted for selenium and firefox. I'm using xvfb and setting an environment variable for the display.
The script works fine without xvfb on OS X desktop. However on the server the script hangs after webdriver.Firefox() is issued as if the python script is no longer executing. No exception is ever raised and firefox is still active in my process list.
Setup:
sudo Xvfb :10 -ac
export DISPLAY=:10
test.py
from selenium import webdriver
print 'start'
firefox = webdriver.Firefox()
print 'Hello?'
firefox.quit()
print 'done!'
output:
start
cursor winks tauntingly
I Had the same problem with Chrome. Also tried the phantomJs flash fork, this was successful but did not capture flash content.
starting independently firefox gives
(process:3278): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' f failed
Xlib: extension "RANDR" missing on display ":10".
Error: Access was denied while trying to open files in your profile directory.
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
(firefox:3278): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message
Please help
Thanks!