Can't install Polars and DuckDB on windows 11

Hello, I am an experienced programmer, and want to try Julia (1.11.1).
For evaluation purposes, I wanted to start by installing two tools that I use regularly and know very well. Polars and DuckDB.
I found it very difficult to find information on how to install packages for Julia, and after trying with Pkg add in the Pkg REPL I get all kinds for errors.

I think this is the main or more frequent appearing error.

┌ Error: curl_easy_setopt: 4
l\utils.jl:50

I would really appreciate any help. Thanks a lot in advance.

Hi,

Happy to hear you want to give Julia a shot!

I think the main source is the Pkg.jl documentation. Long story short (though you’re probably aware) you can use either

(@v1.10) pkg> add BenchmarkTools

in Pkg REPL mode, or

julia> using Pkg

julia> Pkg.add("BenchmarkTools")

in standard mode, to install a package called BenchmarkTools(.jl).

Do you only have issues installing these specific packages, or installing packages in general?

Thanks a lot for you response.
I have installed multiple packages successfully, by entering the Pkg REPL with ] and doing
add <PackageName>

But with add Polars I get the error I posted above.
When I tried the same on linux (WSL 2), I got the error

ERROR: The following package names could not be resolved:
 * Polars (not found in project, manifest or registry)
   Suggestions: Solaris Colors Polymers Pilates Poptart PolyChaos Monads Dolang Jolab Posets Folds Tonari Colab Losers Peaks

For example I just did successfully add BenchmarkTools on linux

(@v1.11) pkg> add BenchmarkTools
   Resolving package versions...
   Installed BenchmarkTools ─ v1.5.0
    Updating `~/.julia/environments/v1.11/Project.toml`
  [6e4b80f9] + BenchmarkTools v1.5.0
    Updating `~/.julia/environments/v1.11/Manifest.toml`
  [6e4b80f9] + BenchmarkTools v1.5.0
  [9abbd945] + Profile v1.11.0
Precompiling project...
  1 dependency successfully precompiled in 5 seconds. 213 already precompiled.

On Windows 10 and Julia 1.11.1 at least I got the same error message as you got on WSL 2. Assuming you’re referring to

the problem just seems to be that this package is not registered. Luckily you can simply use

(@v1.11) pkg> add https://github.com/Pangoraw/Polars.jl

which works fine for me.

For DuckDB (v1.1) I got precompilation errors, both on Julia 1.10.4 and 1.11.1. This seems to be a known issue:

In this topic there are also some (links to) suggested workarounds. Using DuckDB v1.0 via

(@v1.11) pkg> add DuckDB_jll@1.0 DuckDB@1.0

(first rm or remove v1.1 if it is installed), I did not run into any problems.

1 Like

Thank you so so much for your help.
When I tried in powershell, it didn’t work. Possibly it has to do
When I tried in VSCode on Windows, but connected to WSL 2. It worked.
So now I will be able to use it.

May I ask you two different questions? If you think it is more appropriate, I will open new topic under the category you will name.

First question is, how were you able to find this answer? In other words, what should I have done to find the solution myself.

The second question is, can you recommend any book(s), youtube video(s), or sites that offer good introductions to julia targeting already experienced developers (python, Rust, R)? There are a couple of good videos on youtube, but from simple data scientists that are not so good for my case.
Thanks a lot in advance

The error on windows is:

(@v1.11) pkg> add https://github.com/Pangoraw/Polars.jl
     Cloning git-repo `https://github.com/Pangoraw/Polars.jl`
ERROR: failed to clone from https://github.com/Pangoraw/Polars.jl, error: GitError(Code:ERROR, Class:SSL, Your Julia is built with a SSL/TLS engine that libgit2 doesn't know how to configure to use a file or directory of certificate authority roots, but your environment specifies one via the SSL_CERT_FILE variable. If you believe your system's root certificates are safe to use, you can `export JULIA_SSL_CA_ROOTS_PATH=""` in your environment to use those instead.)

My version of julia is

 Version 1.11.1 (2024-10-16)

Glad I could help.

Well, Google (or your favourite seach engine) and the Julia Discourse are your friends :slight_smile: . When I got the error message that Polars could not be found (in the registry), I just googled to get to the github page. Most of the time you would find installation instructions, especially if it’s not just add <package>. In the absence of this I checked the Issues, where there indeed was one about registration. Now, I remembered that you could directly install packages from github, but if you wouldn’t, the first Google result for “Julia install package from github” is

which is helpful.

For DuckDB I just searched for something along the lines of “precompile DuckDB” on the Julia Discourse, resulting in the topic I linked to. Again, I was already aware of the Pkg syntax to install a specific version, but that’s a quick Google search away. If I remember correctly

(@v1.11) pkg> add DuckDB@1.0

didn’t work, as it would still install a newer version of the _jll file, as evidenced by the output in the REPL, so I also forced the version here.

I think it would be best to create a new topic. Well, first look around a bit on the Discourse to see if no similar question has been asked in the past. If not, I think posting under New to Julia is fine.

I’m haven’t encountered this error before, but you could try the solution proposed here:

1 Like

Thank again

1 Like