Julia can't precompile Genie.jl - julia

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.

Related

Error when trying to Pkg.add("Playground") in Julia

I am trying to install Playground in Julia 1.7.2 in order to make a virtual environment. However, when I go about julia> Pkg.add("Playground") the following error appears:
ERROR: The following package names could not be resolved:
* Playground (not found in project, manifest or registry)
I am not sure what is happening and how to properly resolve this issue in the most convenient way. Could it be a version incompatibility issue?

Got an error while building Wayland: ERROR: Program 'dot' not found

I am following instructions in wayland's gitlab website to build it on Ubuntu 20.04. But I got an error at the "meson build" step:
Program dot found: NO
doc/meson.build:1:0: ERROR: Program 'dot' not found
I have tried installing graphviz using apt-get, pydot using pip3, but still receive the above error. What else should I install?
If you don't need the documentation built, just running meson setup $builddir -Ddocumentation=false will turn off the documentation, and thus the need for dot.
But it's confusing that graphviz isn't fixing the problem, since that is the Debian/Ubuntu package with dot in it.

Gettin Parser Error while installing Package in Julia 1.0.1

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

What would cause Julia to throw a warning and say that something cannot be imported?

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.

Fail to install RCall - Julia package

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.

Resources