Not able to install sbt in windows 7 - build

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. "

Related

Error HH502: Couldn't download compiler version list. Please check your internet connection and try again

I am following the process from https://hardhat.org/tutorial/creating-a-new-hardhat-project to create a new hardhat project.
However, it is throwing an error in the contract compiling step; i.e. when I run yarn hardhat compile
Downloading compiler 0.8.9
(node:3732) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Error HH502: Couldn't download compiler version list. Please check your internet connection and try again.
HardhatError: HH502: Couldn't download compiler version list. Please check your internet connection and try again.
at /mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:149:17
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at CompilerDownloader.downloadCompiler (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/solidity/compiler/downloader.ts:142:5)
at SimpleTaskDefinition.action (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/builtin-tasks/compile.ts:551:9)
at Environment._runTaskDefinition (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14)
at Environment.run (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/core/runtime-environment.ts:156:14)
at SimpleTaskDefinition.action (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/builtin-tasks/compile.ts:678:36)
at Environment._runTaskDefinition (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14)
at Environment.run (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/core/runtime-environment.ts:156:14)
at Environment._runTaskDefinition (/mnt/a/projects/Ethereum/hh-fcc/hardhat-simple-storage-2/node_modules/hardhat/src/internal/core/runtime-environment.ts:308:14)
Caused by: Error: getaddrinfo EAI_AGAIN binaries.soliditylang.org
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:26)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command
I'm running the code on windows with WSL using
node v16.13.2
yarn v1.22.15
hardhat v2.11.2
Here are my WSL configs
BUILD: 19042
BRANCH: vb_release
RELEASE: Ubuntu 20.04.3 LTS
KERNEL: Linux 4.4.0-19041-Microsoft
UPTIME: 0d 3h 18m
Here's my hardhat.config.js
require("#nomicfoundation/hardhat-toolbox");
/** #type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.9",
};
Here's my repo link: https://github.com/J0SAL/hardhat-simple-storage
The code and everything are correct.
I found the issue in my WSL setup.
Right now I'm using Windows PowerShell and it's working fine.

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

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.

Debian9 - Upgrade virtaulbox fails on 'Cannot unload module vboxdrv.'

I'm trying to update debian 9 and virtualbox can't be upgrated...
I'm getting the error:
vboxdrv.sh: failed: Cannot unload module vboxdrv.
Does anybody has any idea ?
$ apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
virtualbox-5.1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/66.9 MB of archives.
After this operation, 6,144 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 261193 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.1_5.1.36-122089~Debian~stretch_amd64.deb ...
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
dpkg: error processing archive /var/cache/apt/archives/virtualbox-5.1_5.1.36-122089~Debian~stretch_amd64.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
A copy of VirtualBox is currently running. Please close it and try again.
Please note that it can take up to ten seconds for VirtualBox to finish running.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxdrv.service → /lib/systemd/system/vboxdrv.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxballoonctrl-service.service → /lib/systemd/system/vboxballoonctrl-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxautostart-service.service → /lib/systemd/system/vboxautostart-service.service.
Created symlink /etc/systemd/system/multi-user.target.wants/vboxweb-service.service → /lib/systemd/system/vboxweb-service.service.
vboxdrv.sh: failed: Cannot unload module vboxdrv.
There were problems setting up VirtualBox. To re-start the set-up process, run
/sbin/vboxconfig
as root.
Errors were encountered while processing:
/var/cache/apt/archives/virtualbox-5.1_5.1.36-122089~Debian~stretch_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Seen in the error messages you posted:
A copy of VirtualBox is currently running. Please close it and try again.
Please note that it can take up to ten seconds for VirtualBox to finish running.
Did you try that ?

rabbitmq-plugins.bat enable rabbitmq_management

I install Erl7.3 and rabbitmq-server 3.6.2. I using Win7 32bit. After installing when I run 'rabbitmq-server' command it gives:
ERROR: node with name "rabbit" already running on "admin-PC"
When I run 'net stop RabbitMQ && net start RabbitMQ' it stopped RabbitMQ service and restarted successfully.
After that When I run "rabbitmq-plugins enable rabbitmq_management", it gives following errors and nothing is shown at http://localhost:15672:
Plugin configuration unchanged.
Applying plugin configuration to rabbit#admin-PC... failed.
Error: {undef,[{crypto,module_info,[attributes],[]},
{rabbit_misc,module_attributes,1,
[{file,"src/rabbit_misc.erl"},{line,817}]},
{rabbit_misc,'-all_module_attributes/1-fun-0-',3,
[{file,"src/rabbit_misc.erl"},{line,837}]},
{lists,foldl,3,[{file,"lists.erl"},{line,1262}]},
{rabbit_boot_steps,find_steps,1,
[{file,"src/rabbit_boot_steps.erl"},
{line,40}]},
{rabbit_boot_steps,run_boot_steps,1,
[{file,"src/rabbit_boot_steps.erl"},
{line,26}]},
{rabbit,start_apps,1,[{file,"src/rabbit.erl"},{line,451}]},
{rabbit_plugins,ensure,1,
[{file,"src/rabbit_plugins.erl"},{line,52}]}]}
For your information, I set environmental variables as:
'Variable name: ERLANG_HOME', 'Variable value: C:\Program Files\erl7.3';
'Variable name: RABBITMQ_SERVER', 'Variable value: C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.2'
and system path "%ERLANG_HOME%;;%RABBITMQ_SERVER%\sbin"
How to resolve this errors?
rabbitmq management plugin needs the cryptopakage to work.
see:
Error: {undef,[{crypto,module_info,[attributes],[]},
{rabbit_misc,module_attributes,1,
Try to use the Erlang 18.3 version.
EDIT
After installing when I run 'rabbitmq-server' command it gives:
ERROR: node with name "rabbit" already running on "admin-PC"
This is normal since rabbitmq-server starts the server, but you have rabbitmq installed and running as windows service.
And you should use the 64 bit version

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.