Can't add GLM

OK thanks

(v1.2) pkg> add StatsBase
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package HDF5 [f67ccb44]:
 HDF5 [f67ccb44] log:
   possible versions are: [0.9.4-0.9.5, 0.10.0-0.10.4, 0.11.0-0.11.1, 0.12.0-0.12.5, 0.13.0-0.13.6] or uninstalled
   restricted by julia compatibility requirements to versions: [0.9.4-0.9.5, 0.10.0-0.10.4, 0.11.0-0.11.1, 0.12.0-0.12.5] or uninstalled
   restricted by compatibility requirements with JLD [4138dd39] to versions: [0.12.0-0.12.5, 0.13.0-0.13.6], leaving only versions: 0.12.0-0.12.5
     JLD [4138dd39] log:
       possible versions are: [0.9.0-0.9.2, 0.10.0] or uninstalled
       restricted to versions 0.10.0 by an explicit requirement, leaving only versions 0.10.0
   restricted by compatibility requirements with Blosc [a74b3585] to versions: 0.13.1-0.13.6 or uninstalled   no versions left
     Blosc [a74b3585] log:
       possible versions are: [0.5.1, 0.6.0, 0.7.0] or uninstalled
       restricted by julia compatibility requirements to versions: [0.5.1, 0.6.0] or uninstalled
       restricted by compatibility requirements with Compat [34da2185] to versions: [0.6.0, 0.7.0] or uninstalled, leaving only versions: 0.6.0 or uninstalled
         Compat [34da2185] log:
           possible versions are: [1.0.0-1.0.1, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0-1.5.1, 2.0.0, 2.1.0, 2.2.0-2.2.1, 3.0.0, 3.1.0, 3.2.0, 3.3.0-3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0-3.9.1, 3.10.0, 3.11.0, 3.12.0, 3.13.0, 3.14.0, 3.15.0, 3.16.0, 3.17.0] or uninstalled
           restricted to versions 3.8.0 by an explicit requirement, leaving only versions 3.8.0

(v1

Incidentally, all these packages were working fine together before I tried to add GLM

Thanks again

Hmmm. This is definitely frustrating. My only advice is to get used to using different separate environments for different projects. There is no need to have JLD, JLD2, and HDF5 in the same environment, since they all do the same thing and presumably you wouldn’t use them all in the same project.

It makes sense that GLM would break things in this way, since it has it’s own specialized set of packages it is meant to work with.

I think that whatever you need GLM for, you should make a new project environment and only add the packages you absolutely need. It’s a frustrating change in workflow for sure. When more and more packages hit 1.0 this will definitely be easier

2 Likes

Thanks. It seems that HDF5 is causing trouble, but I can’t remove it:

(v1.2) pkg> rm HDF5
ERROR: The following package names could not be resolved:
 * HDF5 (f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f in manifest but not in project)
Please specify by known `name=uuid`.


Would it work to delete the 1.2 directory completely and start over if I want to use this installation? Or maybe run Pkg.init()

[I have to admit, I don’t understand Environments - I have just been using one for each release of Julia. ]

I’m not 100% sure how to solve that error but in general, when switch from projects to projects, run

] activate . 

This ensures there is a separate list of packages for each project. You won’t have tons of packages as dependencies to work out when things break.

Thanks. I can read up on it (thanks)