Following RCall's documentation, I ran Pkg.add("RCall") which looked to be working. Then, running using RCall gave:
WARNING: could not import StatsModels.Formula into RCall
ERROR: LoadError: RCall not properly installed. Please run Pkg.build("RCall")
#... few lines later
ERROR: Failed to precompile RCall [6f49c342-dc21-5d91-9882-a32aef131414] to C:\Users\jke4\.julia\compiled\v1.1\RCall\8GFyb.ji.
That's why I ran Pkg.build("RCall"):
┌ Error: Error building `RCall`:
│ ERROR: LoadError: R cannot be found. Set the "R_HOME" environment variable to re-run Pkg.build("RCall").
I believe, accordingly to RCall's documentation that I have to do a custom installation, but why can't am I able to simply install by Pkg.add("RCall") like it's suppose to be done?
RCall.jl can simply be installed with
Pkg.add("RCall")
Note:
Julia version is 1.1.0.
using Conda does work.
There is no R version installed in my Windows computer
I do understand what is my error message and how I can deal with it. My question is why do I have it whereas I wasn't suppose to, quoting RCall's documentation:
RCall.jl will automatically install R for you using Conda if it doesn't detect that you have R 3.4.0 or later installed already.
Update
Alright, I've done what #Cameron Bieganek suggests: pkg> pin StatsModels#0.5
And it seems to work for a moment. However, after doing ] up, accordingly with the issue I had in this question.
using RCall now gives:
ERROR: LoadError: RCall not properly installed. Please run Pkg.build("RCall")
and Pkg.build("RCall"):
┌ Error: Error building `RCall`:
│ ERROR: LoadError: IOError: stat: invalid argument (EINVAL)
This time I can't get what's the error.
GitHub
Please note that this question is also referenced on GitHub RCall.jl.
Related
I'm on Ubuntu and would like to use Genie.jl but I can't even get Genie to precompile.
It's also not the only error message I get. By just running "using Genie" gives me the following:
ERROR: LoadError: LoadError: syntax: invalid keyword argument syntax "webserver"
I already tried Pkg.resolve() and Pkg.instantiate() and pkg> update. All without success.
Noticed that Julia was on version 1.4.1. After updating all problems were resolved.
When I tried to run Pkg.add('BenchmarkTools") I got the following error.
ERROR: Pkg.TOML.ParserError(3, 4, "expected `=`, but found `\x90`")
It seems to be a general problem. The only solution for this is to close julia or coding environment, delete the TOML file in
C:\Users<USER>.julia\logs
and restart Julia
I am trying to get my unit tests for a private repo to run on Travis. However, I am getting the following error:
WARNING: could not import POMDPs.initial_state into PrivateRepo
850ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: initial_state not defined
Edit to make things simpler: what would cause Julia to throw a warning and say that something cannot be imported?
The issue did not end up being as sinister as I guessed. It turns out my Julia 1.0.3 environment had a different version of POMDPs than my PrivateRepo's Manifest.jl file. All I did to fix it was downgrade POMDP's and a couple of packages that depended upon the newer version of POMDP's.
I used to use Julia in Jupyter notebook. I uninstalled yesterday the .julia directory because of other issues and after Pkg.add(IJulia) Im getting a building error related to ZMQ. the full error is below.
julia> Pkg.build("ZMQ")
INFO: Building Homebrew
Already up-to-date.
INFO: Building ZMQ
Warning: staticfloat/juliatranslated/zeromq32-3.2.5 already installed, it's just not linked.
Error: Formulae found in multiple taps:
* staticfloat/juliadeps/zeromq32
* staticfloat/juliatranslated/zeromq32
Please use the fully-qualified name e.g. staticfloat/juliadeps/zeromq32 to refer the formula.
=================================[ ERROR: ZMQ ]=================================
LoadError: failed process: Process(`/Users/pacagal/.julia/v0.5/Homebrew/deps/usr/bin/brew link staticfloat/juliatranslated/zeromq32 --force`, ProcessExited(1)) [1]
while loading /Users/pacagal/.julia/v0.5/ZMQ/deps/build.jl, in expression starting on line 35
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: ZMQ had build errors.
- packages with build errors remain installed in /Users/pacagal/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("ZMQ")`
- build a single package by running its `deps/build.jl` script
================================================================================
I have also run the build.jl file but I am getting an error too.
I was having the same issue this morning. In the terminal I ran brew install zmq and that resolved the issue.
I still had to run julia>Pkg.build("Nettle") after installing zmq and after that IJulia is running fine.
I am trying to install the Cairo and Winston packages fro Julia.
However, this is the following output that I receive when I try to test Winston.
julia> Pkg.add("Winston")
INFO: Nothing to be done.
julia> using Winston
ERROR: could not open file /Users/sethhirsh/.julia/v0.2/Cairo/src/../deps/deps.jl
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in include at boot.jl:238
in include_from_node1 at loading.jl:114
in reload_path at loading.jl:140
in _require at loading.jl:58
in require at loading.jl:46
vin include at boot.jl:238
in include_from_node1 at loading.jl:114
in reload_path at loading.jl:140
in _require at loading.jl:58
in require at loading.jl:46
at /Users/sethhirsh/.julia/v0.2/Cairo/src/Cairo.jl:3
at /Users/sethhirsh/.julia/v0.2/Winston/src/Winston.jl:3
julia> Pkg.add("Cairo")
INFO: Nothing to be done.
================================[ ERROR: Cairo ]================================
failed process: Process(/Users/sethhirsh/.julia/v0.2/Cairo/deps/src/glib-2.34.3/configure --prefix=/Users/sethhirsh/.julia/v0.2/Cairo/deps/usr, ProcessExited(1)) [1]v
at /Users/sethhirsh/.julia/v0.2/Cairo/deps/build.jl:130`
================================================================================
================================[ BUILD ERRORS ]================================
WARNING: Homebrew and Cairo had build errors.
packages with build errors remain installed in /Users/sethhirsh/.julia/v0.2
build a package and all its dependencies with `Pkg.build(pkg)
build a single package by running its deps/build.jl script
================================================================================ `
Any help in fixing these errors is appreciated.
Me too got these errors once. For me When adding 'Winston' library 'Cairo' was a dependency. So What I would suggest is to completely uninstall Julia from system, because Package.rm() may not not make things clear for re-installation of packages alone. Then reinstall the Julia and make sure internet connection before typing Package.add("Winston"). Cairo will come along.