Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.
This repository was archived by the owner on Sep 16, 2025. It is now read-only.

Import Error: cannot import name 'GenericStorage' #74

@s77411

Description

@s77411

Tried to use one of the both plotting example. Installed Oemof Version is 0.3.2 and oemof visio version is 0.0.1 on a windwos 10 computer. When executing both examples (oemof-examples/oemof_examples/oemof.solph/v0.3.x/plotting_examples/) storage_investment_plot.py and variable_chp_plot.py the error code: Import Error: cannot import name 'GenericStorage' gets returned. Fixed the bug by adding in the ...\oemof_visio\energy_system_graph.py in line 28 .components.
Old:
from oemof.solph import GenericStorage
New (Fixed):
from oemof.solph.components import GenericStorage

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