ImportError for the Oemof.solph 0.5.1.dev0 version

Hello community,
I wanted to update oemof solph to latest version and use the new features. However, even installing the developer version, and creating a separate environment in anaconda, I get this error

ImportError: cannot import name 'Transformer' from 'oemof.solph' (C:\Users\mallad\Anaconda3\envs\latest_oemof\lib\site-packages\oemof\solph\__init__.py)

Is there something that I am missing?

Thanks in advance,
Dev

Hi @Dev,

For solph => 0.5, the nodes of the energy system graph have been structured into buses, components. So, it’s now from oemof.solph.components import Transformer. (We took this step to make it clear what kind of entity something is because there are plans to have e.g. buses with some extra logic that otherwise would not be distinguishable from components.)

Please see the oemof.solph 0.5.0 documentation (oemof-solph.readthedocs.io) for more information.

Cheers,
Patrik

1 Like

Thanks a lot @pschoen . and wish you a nice weekend.