iiasa / ixmp

The ix modeling platform for integrated and cross-cutting scenario analysis
https://docs.messageix.org/ixmp
Apache License 2.0
38 stars 111 forks source link

Instantiate ixmp.Platform() hangs forever #539

Closed ravitby closed 1 month ago

ravitby commented 1 month ago

Code sample or context

import os
import pandas as pd
import ixmp as ix
import message_ix

mp = ix.Platform()

Expected result

Return an object.

Problem description

The code is running as expected inside the message_data module. In the console the code hangs.

Versions

Output of ixmp show-versions 'ixmp show-versions' in a terminal: ``` msg_kit ixmp show-versions ixmp: 3.9.1.dev0+g35da509.d20240726 e12922f (HEAD -> main, origin/main, origin/HEAD) Merge pull request #532 from iiasa/issue/531 message_ix: 3.9.0 1125579 (HEAD -> main, tag: v3.9.0, origin/main, origin/HEAD) Clarify release procedure message_ix_models: 2024.4.23.dev803+ge76bbd33 4d95695c (HEAD -> main, origin/main, origin/HEAD) Merge pull request #195 from iiasa/costs/fom-vintage message_data: 2020.6.21.dev3109+gfff251a4e b1114e7b7 (HEAD -> il/transport-2024-01-20, origin/il/transport-2024-01-20, il/transport-2024-04-16) Edit the il docs click: 8.1.7 dask: 2024.7.1 genno: installed graphviz: 0.20.3 jpype: 1.4.0 … JVM path: /opt/miniconda3/envs/ME_X86_P3.10/lib/jvm/lib/libjli.dylib openpyxl: 3.1.5 pandas: 2.2.2 pint: 0.24.3 xarray: 2024.6.0 yaml: 6.0.1 iam_units: installed jupyter: installed matplotlib: 3.9.1 plotnine: 0.13.6 pyam: 2.2.3 GAMS: 36.2.0 python: 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:53:34) [Clang 16.0.6 ] python-bits: 64 OS: Darwin OS-release: 23.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: he_IL.UTF-8 LOCALE: ('he_IL', 'UTF-8') ```
glatterf42 commented 1 month ago

Please see #538 and https://github.com/iiasa/ixmp/issues/538#issuecomment-2254995425 in particular; I think this behavior is a good indicator that my comment there is moving you in the right direction :)

ravitby commented 1 month ago

Thank you for the answer, problem solved.