You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello community, after installing oemof.solph, I wanted to test the first example. Unfortunately I got an error message afterwards. What is my problem?
Traceback (most recent call last):
File "F:\python\0728\pf_oemof_0728.py", line 1, in
from oemof.solph import EnergySystem, Model, Bus, Flow, Source, Sink
ImportError: cannot import name 'Source' from 'oemof.solph' (G:\Python\Lib\site-packages\oemof\solph_init_.py)
Hi @HANSBIBI. You are using solph v0.5, the examples are for legacy versions of solph. For v0.5 (and following) we have moved them to the solph repository. See https://github.com/oemof/oemof-solph/tree/v0.5/examples for examples working with the version you have installed.
Hello community, after installing oemof.solph, I wanted to test the first example. Unfortunately I got an error message afterwards. What is my problem?
Traceback (most recent call last):
File "F:\python\0728\pf_oemof_0728.py", line 1, in
from oemof.solph import EnergySystem, Model, Bus, Flow, Source, Sink
ImportError: cannot import name 'Source' from 'oemof.solph' (G:\Python\Lib\site-packages\oemof\solph_init_.py)
add my pip list
Package Version
blinker 1.6.2
colorama 0.4.6
deepdiff 6.3.1
dill 0.3.7
networkx 3.1
numpy 1.25.1
oemof.network 0.5.0a1
oemof.solph 0.5.0
oemof.tools 0.4.2
ordered-set 4.1.0
packaging 23.1
pandapower 2.13.1
pandas 2.0.3
pip 23.1.2
ply 3.11
Pyomo 6.6.1
python-dateutil 2.8.2
pytz 2023.3
scipy 1.11.1
setuptools 65.5.0
six 1.16.0
tqdm 4.65.0
tzdata 2023.3
The text was updated successfully, but these errors were encountered: