Closed ravitby closed 1 month ago
Thanks for opening this issue, @ravitby.
While you haven't said exactly which line is causing the error (which should be part of the full error traceback you see), this error was caused in the past by trying to connect to a crowded local database.
In ixmp, when a database is filled with scenarios over time, connecting to that database takes longer and longer and requires more and more energy until eventually you hit a limit. That is why it's best to store scenarios in project-specific databases.
To do that, you will have to register a new ixmp platform, e.g. via the CLI: ixmp platform add <platform_name> jdbc hsqldb <path_to_platform>
, where a recent example for a path on my system is /home/fridolin/.local/share/ixmp/localdb/test_feature_price_emission
. If you run ixmp config show
, you will find the path where your default
DB is located and you want to use the same path, but with a different file/DB name for this new platform.
Then in your code, you can connect to the new DB by specifying its name: mp = ix.Platform("<platform_name>")
.
Please let us know if this solves your issue.
Thanks for the detailed answer, problem solved.
Running a notebook script getting the following error:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Python Reference Queue"
The code is running under venv environment.
The ixmp module is used as part of the message_data module and there are no issues in this environment.
Code sample or context
If possible, provide a minimal, working code example, formatted like:
Expected result
Continue to the next command.
Problem description
This is the output:
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Python Reference Queue"
Not sure how to clear the memory issue.
Versions
'ixmp show-versions' in a terminal: