Skip to content

ModuleNotFoundError: No module named 'ruamel_yaml' #10

Description

@philippklughardt

Hello DemandRegioTeam,

I have recently installed disaggregator and would like to use the demand time series for households and CTS/Industry in my thesis.
I have studied the demos and ran some tests on a jupyter notebook. In the General settings and functions, after importing the respective packages and modules from the disaggregator and running the following commands

  • ec_pop = spatial.disagg_households_power(by='population', weight_by_income=False)
    ec_pop.head()

  • df_spat = spatial.disagg_households_power('population', weight_by_income=True) * 1e3
    df_spat

  • config.dict_region_code(raw=True).head()

it always yields this error: "No module named 'ruamel_yaml'".
See the error message below.


ModuleNotFoundError Traceback (most recent call last)
/var/folders/xc/46hrc1yd3t103ncpxm99t_1c0000gr/T/ipykernel_87681/213777720.py in
----> 1 config.dict_region_code(raw=True).head()

~/Desktop/disaggregator-master/disaggregator/config.py in dict_region_code(keys, values, level, raw, **kwargs)
196 dict or pd.DataFrame
197 """
--> 198 dict_source = kwargs.get('dict_source', get_config()['dict_source'])
199 # Argument error handling
200 assert dict_source in ['local', 'database'], (

~/Desktop/disaggregator-master/disaggregator/config.py in get_config(filename, use_ruamel, **kwargs)
52 if use_ruamel:
53 # This one supports YAML Spec 1.2 w/o the problems mentioned below.
---> 54 import ruamel_yaml
55 else:
56 # Warning: As of 11/2020 PyYAML only supports YAML Spec 1.1, which can

ModuleNotFoundError: No module named 'ruamel_yaml'

Your help with this issue would be very much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions