# JuliaDB compatibility issue

**URL:** <https://discourse.julialang.org/t/juliadb-compatibility-issue/82913>\
**Category:** New to Julia\
**Created:** [June 17, 2022, 12:20pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913 "2022-06-17T12:20:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Inbar\_Maimon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/inbar_maimon/32/18045_2.png) [@Inbar\_Maimon](https://discourse.julialang.org/u/Inbar_Maimon)\
**Post date:** [June 17, 2022, 12:20pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/1 "2022-06-17T12:20:01Z")

</div>

Hi!

I’m trying to use JuliaDB. When I try to `add` it, I get the following incompatibility message:

```julia
(@v1.7) pkg> add JuliaDB
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MLUtils [f1d291b0]:
 MLUtils [f1d291b0] log:
 ├─possible versions are: 0.1.0-0.2.6 or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.2.6
 └─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: uninstalled — no versions left
   └─StatsBase [2913bbd2] log:
     ├─possible versions are: 0.24.0-0.33.16 or uninstalled
     ├─restricted to versions * by an explicit requirement, leaving only versions 0.24.0-0.33.16
     └─restricted by compatibility requirements with JuliaDB [a93385a2] to versions: 0.24.0-0.32.2
       └─JuliaDB [a93385a2] log:
         ├─possible versions are: 0.9.0-0.13.1 or uninstalled
         └─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.13.1

```

I reckon that StatsBase and JuliaDB are incompatible. Have I understood the message correctly?  
Is there a solution to this problem?

Thanks a lot,  
Inbar

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 17, 2022, 1:34pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/2 "2022-06-17T13:34:02Z")

</div>

You haven’t understood it quite correctly. Let me post a screenshot - normally discouraged, but I’ll do it for the colours - of what happens when I try to add JuliaDB and MLUtils in a new environment [NB: don’t just dump all your projects into the main environment, work with project specific environments]:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/6/c/6ca0cf802f2435eca833476fe691f875bbbf96c9.png)

hopefully this makes it clearer:

- both `MLUtils` and `JuliaDB` depend on `StatsBase`
- `MLUtils` requires `StatsBase >= 0.33`
- `JuliaDB` requires `StatsBase <= 0.32.2`

The best way around this would be to bump the compat bounds of `JuliaDB`, but unfortunately it hasn’t been updated in a while.

A hack would be to `dev` `JuliaDB` locally and just relax the compat to allow `StatsBase 0.33` to see if it works - if it does you could upstream that change (and maybe become a new `JuliaDB` maintainer!)

---

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [June 17, 2022, 1:37pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/3 "2022-06-17T13:37:49Z")

</div>

> [@Inbar\_Maimon](#):
>
> I’m trying to use JuliaDB.

Given that JuliaDB.jl is not maintained currently could you say what is your usecase as maybe some alternatives could be recommended instead?

---

<div class="post-metadata">

**Author:** ![Inbar\_Maimon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/inbar_maimon/32/18045_2.png) [@Inbar\_Maimon](https://discourse.julialang.org/u/Inbar_Maimon)\
**Post date:** [June 17, 2022, 5:31pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/4 "2022-06-17T17:31:52Z")

</div>

I try to teach myself statistics and (postgre)SQL at the same time, so instead of storing my simulation samples “manually” in a text file I wanted to save them to a database and pull them back later for further analysis.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [June 17, 2022, 7:24pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/5 "2022-06-17T19:24:45Z")

</div>

You don’t need JuliaDB for that, see:

[https://juliadatabases.org/](https://juliadatabases.org/)

---

<div class="post-metadata">

**Author:** ![bkamins](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bkamins/32/208538_2.png) [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Post date:** [June 17, 2022, 8:48pm UTC](https://discourse.julialang.org/t/juliadb-compatibility-issue/82913/6 "2022-06-17T20:48:34Z")

</div>

In particular using [GitHub - invenia/LibPQ.jl: A Julia wrapper for libpq](https://github.com/invenia/LibPQ.jl) in combination with [GitHub - JuliaData/DataFrames.jl: In-memory tabular data in Julia](https://github.com/JuliaData/DataFrames.jl) should be sufficient for most learning purposes.
