Problem when intall MathTexEngine v0.5.0

Hi all, I want to update the MathTexEngine from 0.4.3 to 0.5.0. However, the Pkg threw these errors.

(@v1.7) pkg> add MathTeXEngine@0.5
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package StructArrays [09ab397b]:
 StructArrays [09ab397b] log:
 ├─possible versions are: 0.0.1-0.6.11 or uninstalled
 ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.3.0-0.6.11
 │ └─GeometryBasics [5c1252a2] log:
 │   ├─possible versions are: 0.1.0-0.4.3 or uninstalled
 │   ├─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.4.3
 │   └─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.4.1-0.4.3
 │     └─MathTeXEngine [0a4f8689] log:
 │       ├─possible versions are: 0.1.0-0.5.0 or uninstalled
 │       └─restricted to versions 0.5 by an explicit requirement, leaving only versions 0.5.0
 ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.6.0-0.6.11
 │ └─GeometryBasics [5c1252a2] log: see above
 └─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: 0.0.1-0.5.1 or uninstalled — no versions left
   └─StaticArrays [90137ffa] log:
     ├─possible versions are: 0.8.0-1.5.4 or uninstalled
     ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.12.0-1.5.4
     │ └─GeometryBasics [5c1252a2] log: see above
     └─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.8.0-0.12.5, leaving only versions: 0.12.0-0.12.5
       └─CairoMakie [13f3f980] log:
         ├─possible versions are: 0.0.1-0.8.13 or uninstalled
         ├─restricted to versions * by an explicit requirement, leaving only versions 0.0.1-0.8.13
         ├─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.0.1-0.6.2 or uninstalled, leaving only versions: 0.0.1-0.6.2
         │ └─Makie [ee78f7c6] log:
         │   ├─possible versions are: 0.9.0-0.17.13 or uninstalled
         │   ├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.17.13
         │   ├─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.9.0-0.14.2 or uninstalled, leaving only versions: 0.9.0-0.14.2
         │   │ └─MathTeXEngine [0a4f8689] log: see above
         │   ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: [0.9.0-0.12.0, 0.15.2-0.17.13] or uninstalled, leaving only versions: 0.9.0-0.12.0
         │   │ └─GeometryBasics [5c1252a2] log: see above
         │   └─restricted by compatibility requirements with AbstractPlotting [537997a7] to versions: [0.9.0-0.9.6, 0.13.0-0.17.13] or uninstalled, leaving only versions: 0.9.0-0.9.6
         │     └─AbstractPlotting [537997a7] log:
         │       ├─possible versions are: 0.9.0-0.18.3 or uninstalled
         │       ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: 0.9.0-0.9.27 or uninstalled
         │       │ └─GeometryBasics [5c1252a2] log: see above
         │       ├─restricted by compatibility requirements with Makie [ee78f7c6] to versions: 0.9.0-0.9.27
         │       │ └─Makie [ee78f7c6] log: see above
         │       └─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.9.2-0.9.27
         │         └─CairoMakie [13f3f980] log: see above
         ├─restricted by compatibility requirements with GeometryBasics [5c1252a2] to versions: [0.0.1-0.1.3, 0.6.5-0.8.13] or uninstalled, leaving only versions: 0.0.1-0.1.3
         │ └─GeometryBasics [5c1252a2] log: see above
         └─restricted by compatibility requirements with Cairo [159f3aea] to versions: 0.1.1-0.8.13 or uninstalled, leaving only versions: 0.1.1-0.1.3
           └─Cairo [159f3aea] log:
             ├─possible versions are: 0.5.3-1.0.5 or uninstalled
             ├─restricted by compatibility requirements with CairoMakie [13f3f980] to versions: 0.5.3-1.0.5
             │ └─CairoMakie [13f3f980] log: see above
             └─restricted by compatibility requirements with Compat [34da2185] to versions: 0.7.0-1.0.5 or uninstalled, leaving only versions: 0.7.0-1.0.5
               └─Compat [34da2185] log:
                 ├─possible versions are: 1.0.0-4.1.0 or uninstalled
                 ├─restricted by compatibility requirements with DataFrames [a93c6f00] to versions: 1.0.0-3.45.0
                 │ └─DataFrames [a93c6f00] log:
                 │   ├─possible versions are: 0.11.7-1.3.4 or uninstalled
                 │   ├─restricted to versions * by an explicit requirement, leaving only versions 0.11.7-1.3.4
                 │   └─restricted by compatibility requirements with Compat [34da2185] to versions: 0.20.0-1.3.4 or uninstalled, leaving only versions: 0.20.0-1.3.4
                 │     └─Compat [34da2185] log: see above
                 └─restricted by compatibility requirements with DataStructures [864edb3b] to versions: 3.0.0-4.1.0, leaving only versions: 3.0.0-3.45.0
                   └─DataStructures [864edb3b] log:
                     ├─possible versions are: 0.9.0-0.18.13 or uninstalled
                     ├─restricted by compatibility requirements with StatsBase [2913bbd2] to versions: 0.9.0-0.18.13
                     │ └─StatsBase [2913bbd2] log:
                     │   ├─possible versions are: 0.24.0-0.33.21 or uninstalled
                     │   ├─restricted to versions * by an explicit requirement, leaving only versions 0.24.0-0.33.21
                     │   └─restricted by compatibility requirements with DataStructures [864edb3b] to versions: 0.33.1-0.33.21 or uninstalled, leaving only versions: 0.33.1-0.33.21
                     │     └─DataStructures [864edb3b] log: see above
                     └─restricted by compatibility requirements with MathTeXEngine [0a4f8689] to versions: 0.18.0-0.18.13
                       └─MathTeXEngine [0a4f8689] log: see above

From my understanding of the Pkg’s doc about how to resolve conflicts, I thought that the main obstacle might be CairoMakie? For it limits StaticArrays to be 0.12.5, far behind the latest 1.5.4, which eventually hinders the update of MathTexEngine.

I am not sure if I was right. Any help or suggestions are appreciated.

Thanks!
ZhZHANG

Makie hasn’t updated to 0.5 yet. The update requires jk/glyph indices by jkrumbiegel · Pull Request #2139 · JuliaPlots/Makie.jl · GitHub as far as I understand

I see… Thank you for the prompt reply!

It seems like you’re installing the packages in the base environment @v1.7. If you don’t need Makie and MathTexEngine in the same project, you can create a separate environment for MathTextEngine and avoid the conflict. import Pkg; Pkg.activate("your/project/folder"); Pkg.add("MathTexEngine") will create the new environment in the project folder you specify and install MathTexEngine in that environment.

1 Like

I need to use MathTexEngine to print some LaTeX equations within Makie, so unfortunately, I cannot separate them into two environments. But I still learned to set different environments for different projects which might be helpful soon. Thank you!

1 Like