-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Error: cannot import name 'GenericStorage' #74
Comments
I tried the same for the plots and got the same error. |
Hey, |
Hi, |
I did it in the anaconda environment and looked for the right path to edit the energy_system_graph.py and had no issues there. How are you using oemof? I don´t know if there is also a possibility to implement it in your code. |
I am using winpython environment. i have imported oemof_visio from github and am unable to do any changes. try: |
I guess, that's a problem with different versions of solph:
Thanks for oemof/oemof-visio#8: As visio does not require a specific version, it should work with all of them. PS: Is there a reason to use oemof v0.3 instead of oemof.solph v0.4? |
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
The text was updated successfully, but these errors were encountered: