Troubleshooting frequently made mistakes #298
Unanswered
Lukas-Kunz
asked this question in
Q&A
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are you facing any problems while running your dataset that you cannot resolve? Have a look at the following Q&A:
Q: While running the framework I encounter a ModuleNotFoundError.
A: Ensure that you have activated the newest version of the ZEN garden virtual environment (All the needed modules are included there). To do so, go to settings (file->settings) and check if the default python interpreter is the ZEN garden environment. If that is the case, check if the missing module is contained in the package list of the environment (screenshot):
Now there are two options:
a. Module is contained: Most certainly you are running the framework with a configuration that specifies a different python interpreter. Check if the default project python interpreter (which should be the ZEN garden environment) is chosen in the configuration you are using to execute the framework:
b. You are not using the newest ZEN garden environment version. To re-install the environment, run the following two commands in your Anaconda Prompt (must be done in the directory, where the ZEN garden package is located-> use command
cd/ZEN-garden
(path of ZEN garden)):conda remove --name zen-garden-linopy --all
(replace zen-garden-linopy by your environment name if it is named differently)conda env create -f zen_garden_env.yml
After updating the ZEN garden environment, ensure again if the environment is set as the default python interpreter and if the module can now be found in the package list.
Q: My dataset is infeasible.
A: Estimate if the following criteria are fulfilled:
Q: When I try to run my dataset I get the error FileNotFoundError: system.py not found in dataset: C:\ZEN-garden\data\my_dataset.
A: Your dataset is not located in the data folder. To execute a dataset it must be placed in the data directory.
Q: I get the error "pint.errors.UndefinedUnitError: 'KWh' is not defined in the unit registry", what's wrong?
A: Your prefix should/shouldn't be capitalized e.g. kilo --> k (not K), mega --> M (not m), etc.
Q: I encounter the error "pandas.errors.ParserError: Error tokenizing data. C error: Expected 3 fields in line 10, saw 4" while reading the input data.
A: There's an input csv file showing more commas (separators) than the other rows do.
Beta Was this translation helpful? Give feedback.
All reactions