-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“MissingKeyError”and"NameError"in the "westeros_baseline.ipynb" #660
Comments
Could someone HELP me solve this problem? I couldn't continue my model right now. @_@ |
Can you please print |
And here is my message-ix platform list,
And here is my message-ix version, which is shown previously
That's all. AND very thanks for your attention to my issues. I'm deeply to your reply! Have a Nice day! Best Wishes! |
Dear Awais, |
Anyone here?Could some talent people help me solve this issue?@_@ |
Please carefully read this notice in our GitHub Discussions forum. |
I also have the same problem in my new installation. It could be related to the mapping between GAMS and IXMP but I don't know yet. But in any case, you can still report the results from the GDX output file, which you can find the name from the GAMS output in powershell terminal. |
@gorkemgungormetu can you please perhaps provide information that was requested of the user, but not provided: what version of |
|
Hi @Robinson950619, @khaeru, and @gorkemgungormetu, Tried downgrading it to 1.14.0 with the expectation that it could be a bug in the most recent release. But unluckily, this did not do the trick. Any suggestions? |
@Robinson950619 have you tried "from ixmp.reporting import Reporter" instead of "from message_ix.reporting import Reporter". As I understand, the message_ix.reporting is built on the ixmp and genno. It might thus have some features that are missed when using the ixmp command instead. I can see that this causes some errors in the plotting, e.g., "rep.get("plot activity")" leads to a computation error (It might be that the temporal information, e.g., dispatch is not included). Information such as deployed capacity, produced with "rep.get("plot capacity")", works fine. Please feel free to correct me, since I am still a newbie on message ;) |
Hi all - thanks for bearing with us on this. We believe that the issue is that the current version of In the mean time, our best current suggestion is to do one of two things:
|
Hello again. I downgraded |
These errors should not appear anymore with the latest versions of ixmp and message_ix, which will be 3.7.0 soon. Installing the corresponding release candidate for ixmp and the latest version of the main branch of message_ix, I am unable to reproduce the issue. The commands for that using pip are: pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple ixmp==3.7.0rc1
pip install git+https://github.com/iiasa/message_ix.git@main Checking the ixmp: 3.7.0rc1
message_ix: 3.6.1.dev130+gec69b0b
message_ix_models: None
message_data: None
click: 8.1.3
dask: 2023.4.1
genno: installed
graphviz: 0.20.1
jpype: 1.4.1
… JVM path: /usr/lib/jvm/java-19-openjdk-amd64/lib/server/libjvm.so
openpyxl: 3.1.2
pandas: 2.0.1
pint: 0.21
xarray: 2023.4.2
yaml: 6.0
iam_units: installed
jupyter: 1.0.0
matplotlib: 3.7.0
plotnine: 0.12.1
pyam: 1.8.0
GAMS: 41.5.0
python: 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0]
python-bits: 64
OS: Linux
OS-release: 5.19.0-41-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8') |
Dear contributor,
I'm a fresh postgraduate who first contact with the MESSAGEix model and desire to grasp and develop it. With the help of the Gidden who is the member of IIASA, I have finish the progress of the installation succesffuly. I'm very grateful to him. However, when I tried to run the model of the "westeros_baseline.ipynb", I got the first error on the step "Plotting Results", Like this
So the following steps about "Activity", "Capacity" and other varaities also raised the same errors named "NameError" which is the second error and I think this is due to the first error. For instance
In addition, I guess these two errors may be caused by the issue during my installation. When I open my Anaconda Prompt and run the code "message-ix show-versions", I got
And I found one detail is different from the Youtube video of the installation instruction, that is
Which shown in the Youtube video of the installation instruction is
So I wonder if this difference has caused the first error. Please the contributors could help my issue! I'm deeply looking forward for your reply. Thanks so much for your patience!Have a nice day!
The text was updated successfully, but these errors were encountered: