-
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
Oemof installation error #79
Comments
@Thoho8, make sure that you use the right example for the installed version. For the most actual version of oemof.solph (v0.4.4) you have to use the v0.4.x examples. You can use the following link to find the right version: |
Thanks, but i can't fix the problem. Attached is a list of the current versions of the installed packages. In the "init" folder, the designations you are looking for, such as Operational Model, are missing. In my init folder it is called "model". I'm brand new to programming and need to get the program up and running asap. Solver installed with oemof: cbc: working oemof successfully installed. Package Version adodbapi 2.6.1.3 |
The problem is, that you have the package |
Thanks very much. So I have to reinstall oemof. And then not install oemof but "oemof.solph"? |
I think, pip uninstall oemof should work. PS @oemof-developer: This brings up the question again, if there should be an oemof meta-package that just installs all the oemof packages. |
uninstall oemof an reinstall oemof.solph worked. But the problem is still there. C:\Program Files\WinPython\scripts>oemof_examples storage_investment But now there is a new failure. |
Just download the oemof-examples and execute the file locally using your IDE or the console Everything else can be found here: #78 |
I've tried everything but with PyCharm. I downloaded the oemof examples and installed oemof.solph , oemof.network and oemof.tools. However, it is not possible to run the examples. Error "oemef" could not be found. Idw but it seems impossible to me to execute the examples. |
Normally the best way is to create a new virtual environment for Python and install oemof.solph and nothing else Afterwards you have to define the Python binary of your virtual environment as Python interpreter in PyCharm. If PyCharm does not use your virtual environment it will not find oemof.solph,, because this is only available within this environment. By default PyCharm will use your global Python installation but there is not solph unless you will install solph globally, which I do not recommend. Furthermore, the path where your CBC-solver is located should be part of your global path. It is not enough to add the path within the console using |
Hello community, after installing oemof I wanted to test the first example "oemof_examples storage_investment" unfortunately I got an error message afterwards. What is my problem?
C:\Program Files\WinPython\scripts>oemof_examples storage_investment
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "C:\Program Files\WinPython\python-3.9.10.amd64\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Program Files\WinPython\python-3.9.10.amd64\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\WinPython\python-3.9.10.amd64\Scripts\oemof_examples.exe_main.py", line 4, in
File "C:\Program Files\WinPython\python-3.9.10.amd64\lib\site-packages\examples\examples.py", line 1, in
from .solph.csv_reader.investment.investment import run_investment_example
File "C:\Program Files\WinPython\python-3.9.10.amd64\lib\site-packages\examples\solph\csv_reader\investment\investment.py", line 9, in
from oemof.solph import OperationalModel, EnergySystem, NodesFromCSV
ImportError: cannot import name 'OperationalModel' from 'oemof.solph' (C:\Program Files\WinPython\python-3.9.10.amd64\lib\site-packages\oemof\solph_init.py)
thanks for helping.
The text was updated successfully, but these errors were encountered: