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?
Related
I am trying to use the Twitter.jl package locally on my M1 Mac. However, when I try to install it, I get:
ERROR: Error building `DecFP`:
┌ Warning: Platform `arm64-apple-darwin21.2.0` is not an officially supported platform
└ # BinaryProvider ~/.julia/packages/BinaryProvider/U2dKK/src/PlatformNames.jl:450
ERROR: LoadError: KeyError: key "unknown" not found
DecFP looks like it's an up to date Julia package so I am not sure what the issue would be in this case.
I would like to get a general set of steps to resolve issues like this since I know this package isn't the only one that will have installation issues so hopefully this can be used to help others who have similar issues.
The issue is that Twitter.jl is pulling an old version of OAuth.jl which doesn't work on the M1. I have opened a PR so it pulls a newer version and it should work.
About these cases in general the steps are identifying what package is using BinaryProvider, in this case it's an old MbedTLS that was pulled by an old OAuth. The solutions are, if there is a newer version, change the compat bounds, and if there isn't then one has to build the needed binary using BinaryBuilder.jl and change the dependent packages to use it.
In most cases just opening an issue in github should be enough :).
I keep trying to add IJulia in the REPL, and I keep getting this error message:
I tried installing JSON directly, but the REPL would say "The following packages names could not be resolved".
If it helps, I'm running a Windows 10 laptop with julia 1.0.5
Is there a fix to this? Should I install an earlier version to julia?
Appreciate the time.
It seems like you have outdated registries locally.
The registries are ~/.julia/registries, message like The following package names could not be resolved usually suggests that registry are not updated or somehow corrupted.
Delete them (the directory ~/.julia/registries/General) and then adding packages should cause the General registry to be downloaded, the newest version. Then you should be able to add IJulia without problem.
More people encountered this problem with messed up registry, see https://discourse.julialang.org/t/registry-failed-to-update/17840/10
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.
I am having trouble adding some packages in Julia
This is one example, although I am finding many others:
julia> Pkg.add("QuartzImageIO.jl")
ERROR: The following package names could not be resolved:
* QuartzImageIO.jl (not found in project, manifest or registry)
Please specify by known `name=uuid`.
I believe this should work according to the docs
https://github.com/JuliaIO/QuartzImageIO.jl
and Plotly that required it
LoadError: ArgumentError: Package QuartzImageIO not found in current path:
- Run `import Pkg; Pkg.add("QuartzImageIO")` to install the
QuartzImageIO package.
I am new to Julia, am I doing something wrong?
Thanks
Peter
The .jl suffix is not part of the package name (although packages are often referenced with it included) . Try
using Pkg
Pkg.add("QuartzImageIO")
If you install JuliaPro then the packages that you can install are limited by what's been curated for JuliaPro. Installed the non-pro vanilla version and try again.
When trying to add a package on Julia, I keep getting these message.
Pkg.add("Taro")
ERROR: The following package names could not be resolved:
* Taro (not found in project, manifest or registry)
Please specify by known `name=uuid`.
The warning only pops up when installing certain packages.
I have also tried to use:
get glone http://aviks.github.io/Taro.jl/ , but has not worked neither.
Thank you in advance for your help.
Rodrigo
The package is registered but doesn't seem to be ready for Julia 1.0.
You can (force) add it from it's github repository. It's located at https://github.com/aviks/Taro.jl. Hence, you can either
] add https://github.com/aviks/Taro.jl
or equivalently
using Pkg
Pkg.add("https://github.com/aviks/Taro.jl")
However, building the package will fail on Julia 1.0. Note that the URL that you mention, http://aviks.github.io/Taro.jl/, is only the packages documentation.