Error installing Mimi under v1.3.1

Thank you very much for making the IAMs publicly available. I wanted to work with the DICE-2010 and RICE-2010 IAMs, but I couldn’t install Mimi in julia.

I tried at the julia REPL:
pkg> add Mimi

I got this error:
ERROR: The following package names could not be resolved:

  • Mimi (not found in project, manifest or registry)
    Please specify by known name=uuid.

Does the Mimi package not work in the new julia version?

Hello and thanks for the question! I’m glad you’re interested in using this package!

For now the registered Mimi models are within our own registry, which you will need to add before you can add an individual model. From the README for MimiRICE2010 (https://github.com/anthofflab/MimiRICE2010.jl):

Preparing the software environment

You first need to connect your julia installation with the central Mimi registry of Mimi models. This central registry is like a catalogue of models that use Mimi that is maintained by the Mimi project. To add this registry, run the following command at the julia package REPL:

pkg> registry add https://github.com/mimiframework/MimiRegistry.git

You only need to run this command once on a computer.

The next step is to install MimiRICE2010.jl itself. You need to run the following command at the julia package REPL:

pkg> add MimiRICE2010

You probably also want to install the Mimi package into your julia environment, so that you can use some of the tools in there:

pkg> add Mimi

I am sorry, I should have been more precise. I followed the steps from the README for MimiRICE2010.

This is the code from the console, that I get now:

(v1.3) pkg> registry add https://github.com/mimiframework/MimiRegistry.git
Cloning registry from “https://github.com/mimiframework/MimiRegistry.git
[ Info: registry MimiRegistry already exist in C:\Users\malin\.julia\registries\MimiRegistry.

(v1.3) pkg> add MimiRICE2010
Updating registry at C:\Users\malin\.julia\registries\MimiRegistry
Updating git-repo https://github.com/mimiframework/MimiRegistry.git
Resolving package versions…
ERROR: cannot find name corresponding to UUID c04bee98-12a5-510c-87df-2a230cb6e075 in a registry

(v1.3) pkg> add Mimi
ERROR: The following package names could not be resolved:

  • Mimi (not found in project, manifest or registry)
    Please specify by known name=uuid.

Oh got it, ok I think I know what is going on. If you add the MimiRegistry before any other package in a Julia environment, the Base registry is not added and thus you are unable to add packages located in the generic Julia registry of packages. Can you double check this for me by trying to add another Julia package such as add DiffEqBase? @davidanthoff what’s the fix for this bug again?

Hi there, try typing this into your REPL, which will add the General registry:

pkg> registry add https://github.com/JuliaRegistries/General

Thank you so much! Adding the General registry worked and now I do not get any Errors when adding the packages any more.

1 Like