Comments (2)
Hi @brendandanaher, thanks for reaching out!
This typo is somewhat intentional, I would say. Please note that we have recently released version 3.8.0 of message_ix, which changed the syntax of calling the reporting-related module (as you can see in our docs). So at version 3.4.0 and 3.7.0, the syntax needs to be the way you describe it (from message_ix.reporting import Reporter
), while for version 3.8.0 and above, it needs to be the new way (from message_ix.report import Reporter
).
We took precautions to avoid people running into such errors, so the version of the tutorials that is distributed along with the code always reflects the currently working syntax. For example, you will find that the westeros baseline tutorial in the 3.7.0 version does call from message_ix.reporting
, while only the 3.8.0 version calls from message_ix.report
. So you must have gotten your hands on the latest version of the tutorial, which does not necessarily work with not-the-latest version of message_ix.
Please try updating the message_ix module to the latest version or try running the old version of the tutorials! They are identical on the content side, but some syntax has changed.
from message_ix.
I am using MESSAGE as part of a course and originally downloaded using conda and the version was older. I updated through pip to version 3.7 and the error persists.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
[~\AppData\Local\Temp\ipykernel_12324\3937561850.py](https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/brend/Documents/CIVE%20566/MESSAGE%20Tutorials/iiasa-message_ix-f2bd088/tutorial/westeros/~/AppData/Local/Temp/ipykernel_12324/3937561850.py) in <module>
1 # Create a Reporter object to describe and carry out reporting
2 # calculations and operations (like plotting) based on `scenario`
----> 3 from message_ix.report import Reporter
4
5 rep = Reporter.from_scenario(scenario)
ModuleNotFoundError: No module named 'message_ix.report'
Versions
Output of message-ix show-versions
ixmp: 3.7.0
message_ix: 3.7.0
message_ix_models: None
message_data: None
click: 8.1.7
dask: 2022.02.0
genno: installed
graphviz: None
jpype: 1.4.1
… JVM path: C:\Program Files\Java\jdk-21\bin\server\jvm.dll
openpyxl: 3.0.10
pandas: 1.2.5
pint: 0.17
xarray: 0.20.2
yaml: 6.0
iam_units: installed
jupyter: installed
matplotlib: 3.4.2
plotnine: None
pyam: 1.3.1
GAMS: 38.3.0
python: 3.7.15 (default, Nov 24 2022, 18:44:54) [MSC v.1916 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 154 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: (None, None)
from message_ix.
Related Issues (20)
- scenario.solve ModelError HOT 10
- Loading Scenarios from Platform gets very slow over time
- ModuleNotFoundError: No module named 'utils' HOT 2
- `type_year="cumulative"` is only populated at `.solve()` HOT 10
- Accidentally openend issue HOT 1
- ModuleNotFoundError: No module named 'utils' HOT 21
- Add `.report.key`
- Plotting functionality should join `historical_activity` to `ACT` HOT 1
- Update install instructions with note about using conda and pip together HOT 2
- LP status (22): dual objective limit exceeded HOT 4
- Ensure westeros_baseline tutorial is consistent with make_westeros
- Create a docs page about 'space' HOT 1
- Monitor failures in "Install from conda-forge" workflow with pint 0.24
- Web application
- Fix derivation of `price_ref` from `PRICE_EMISSION` HOT 1
- parameter `bound_activity_lo` does not bound `ACT` but `CAP` HOT 7
- Extend historical parameters to track all VAR when shifting `firstmodelyear` HOT 1
- Incomplete identification of "active" technologies.
- Additional dynamic and soft constraints for `total_capacity`
- Improve documentation of share constraints
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from message_ix.