nsh87 / shinyvm Goto Github PK
View Code? Open in Web Editor NEWCreate a local Shiny Server for R
Create a local Shiny Server for R
How can I get the disk space I need to install new packages? quite frustrating
Thanks for the useful guide. I'm having some trouble with the installation and was hoping you might have some insight. I get up to the fab section without incident, and then encounter the following error:
. . .
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => /Users/cmiller/VirtualBox VMs/shinyVM
default: /www-shiny => /Users/cmiller/VirtualBox VMs/shinyVM/project
default: /www-shiny-writeable => /Users/cmiller/VirtualBox VMs/shinyVM/writeable-project
$ fab vagrant setup_vagrant
Traceback (most recent call last):
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/main.py", line 743, in main
*args, **kwargs
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/tasks.py", line 424, in execute
results['<local-only>'] = task.run(*args, **new_kwargs)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
return self.wrapped(*args, **kwargs)
File "/Users/cmiller/VirtualBox VMs/shinyVM/fabfile.py", line 26, in vagrant
if l])
ValueError: dictionary update sequence element #7 has length 3; 2 is required
Other potentially useful info
$ python --version
Python 2.7.5
$ vagrant -v
Vagrant 1.7.1
Suggestions would be much appreciated.
Hi,
Thank you for the thorough instructions and the guidelines.
However, I'm facing a problem with installing shinyVM.
After I did fab vagrant setup_vagrant
, I got an error with the following message.
I would really appreciate it if you could help me troubleshoot.
Best,
Kensuke Koshijima
$ fab vagrant setup_vagrant
[127.0.0.1:2222] Executing task 'setup_vagrant'
[127.0.0.1:2222] sudo: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
[127.0.0.1:2222] out: Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.mwaDtpo9b9 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
[127.0.0.1:2222] out: gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com
[127.0.0.1:2222] out: gpg: keyserver timed out
[127.0.0.1:2222] out: gpg: keyserver receive failed: keyserver error
[127.0.0.1:2222] out:
Fatal error: sudo() received nonzero return code 2 while executing!
Requested: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9"
Aborting.
Disconnecting from 127.0.0.1:2222... done.
sudo() received nonzero return code 2 while executing!
Requested: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9"
This seems like a fantastic kit that I'd really like to use.
Another issue pointed out that the VM runs Ubuntu from 2014, which isn't supported any longer. This gives me concern that R packages needed for a shiny app and shiny server will not be installable and/or functional within the Ubuntu environment.
I dug into the other dependencies and their dependencies, all of which have been upgraded over the years to the point where it seems likely shinyVM can't function on a modern system.
I don't know if any of that is the case, but I'm wary to try making it work and install all of the necessary tools. Is there any confirmation that shinyVM can function out of the box in 2023 with CentOS 7? Moreover, I don't know enough about R packages to say if shiny-server, shiny, R 4.1.2, flextable, etc. can be installed in Ubuntu 2014 in 2023.
Thoughts?
I get the following error when I try to run Fabric configuration. I'm accessing the internet through a company proxy.
[127.0.0.1:2222] out: gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com
[127.0.0.1:2222] out: gpg: keyserver timed out
[127.0.0.1:2222] out: gpg: keyserver receive failed: keyserver error
[127.0.0.1:2222] out:
Fatal error: sudo() received nonzero return code 2 while executing!
Requested: sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9
Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "sudo apt-key adv --keyserver
hkp://keyserver.ubuntu.com:80 --recv-keys E084DAB9"
Aborting.
Disconnecting from 127.0.0.1:2222... done.
Ubuntu Trusty is a system from 2014 which is no longer maintained. Would it be possible to update to a current version?
Hi there @nsh87,
Thanks for the guide. I'm coming across an issue with the "fab vagrant setup_vagrant" step. I've followed the guide as precisely as possible and have also uninstalled and reinstalled paramiko
and fabric
. However, installing the specific version of your paramiko
did not successfully install. Some further information:
vagrant -v
Vagrant 1.9.5
python --version
Python 2.7
This is the error message that appears upon running fab vagrant setup_vagrant
:
Traceback (most recent call last):
File "c:\python27\lib\site-packages\fabric\main.py", line 757, in main
*args, **kwargs
File "c:\python27\lib\site-packages\fabric\tasks.py", line 426, in execute
results['<local-only>'] = task.run(*args, **new_kwargs)
File "c:\python27\lib\site-packages\fabric\tasks.py", line 173, in run
return self.wrapped(*args, **kwargs)
File "C:\shiny\fabfile.py", line 27, in vagrant
if l])
ValueError: dictionary update sequence element #10 has length 0; 2 is required
Do you have any advice on how to resolve this error/issues?
Appreciate the help.
Hello, I am able to get through vagrant up, but cannot complete the fab vagrant setup_vagrant. I'm quite stuck. Thanks for any help you can offer.
fab vagrant setup_vagrant
Traceback (most recent call last):
File "c:\python27\lib\site-packages\fabric\main.py", line 756, in main
*args, **kwargs
File "c:\python27\lib\site-packages\fabric\tasks.py", line 427, in execute
results[''] = task.run(*args, **new_kwargs)
File "c:\python27\lib\site-packages\fabric\tasks.py", line 174, in run
return self.wrapped(*args, **kwargs)
File "c:\Users\UID\OPIE\shinyVM\fabfile.py", line 27, in vagrant
if l])
ValueError: dictionary update sequence element #10 has length 0; 2 is required
I am running Windows 7 Enterprise SP1 64bit - Python 2.7.12 and the following versions of fabric packages:
pip install --upgrade fabric
Requirement already up-to-date: fabric in c:\python27\lib\site-packages
Requirement already up-to-date: paramiko<2.0,>=1.10 in c:\python27\lib\site-pack
ages (from fabric)
Requirement already up-to-date: pycrypto!=2.4,<3.0,>=2.1 in c:\python27\lib\site
-packages\pycrypto-2.6.1-py2.7-win32.egg (from paramiko<2.0,>=1.10->fabric)
Requirement already up-to-date: ecdsa<2.0,>=0.11 in c:\python27\lib\site-package
s (from paramiko<2.0,>=1.10->fabric)
Hello, I have installed python (2.7.11), and fabric (1.11.1) succesfully. I have set up the SSH key and was able to run vagrant up
successfully, which created the project and writeable-project folders. However, an error occurs when I try to run fab vagrant setup_vagrant
. This is my output:
Cullans-MacBook-Pro-2:shinyVM cullan$ fab vagrant setup_vagrant
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/main.py", line 745, in main
*args, **kwargs
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/tasks.py", line 427, in execute
results['<local-only>'] = task.run(*args, **new_kwargs)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/fabric/tasks.py", line 174, in run
return self.wrapped(*args, **kwargs)
File "/Users/cullan/Dropbox (Nico)/NLA/Shiny Pro/shinyVM/fabfile.py", line 27, in vagrant
if l])
ValueError: dictionary update sequence element #7 has length 4; 2 is required
Any way to solve this?
Hi,
how can download a package like this one: https://github.com/ramnathv/rCharts on my VM ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.