-
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
Problem with importing oemof site packages #78
Comments
it‘s been quite a long time since I last used spyder, so I am not an expert here. But I remember that spyder needs to be installed to and started from the environment you installed solph. Also, it would be helpful, if you could provide a full list of packages installed in your environment. Also, try to run the example from the anaconda prompt. You need activate the environment Have a nice weekend |
@fwitte ImportError: cannot import name 'Node' from 'oemof.network' (C:\Users\Casper\anaconda3\envs\masterproef\lib\site-packages\oemof\network_init_.py) |
Can you post a list of installed packages?
What python version do you use? |
My Spyder environment uses: Python 3.8.12 |
I do not have access to a windows machine right now, I'll try to reproduce your installation and let you know once I have managed to. |
Could yo specify which version of |
The package list shows that you have install the old @oemof-developer You can reproduce the error by installing oemof using |
To prevent this in the future: Could we just create a new |
I do not like the idea to strengthen the association that |
I am trying to run the basic_example.py code from V0.2x I have tried both your methods but still get the same error. I created a new environment "Thesis" and installed the different packages separatly (oemof.solph and oemof.tools and oemof.network) via pip. Could it be the paths? I don't understand why this path comes with the warning: While I have installed the packages in my environment "Thesis". |
You are trying to run an example made for Preventing the error in the future: You are right, introducing a meta package also has disadvantages. Also, the problem seems to be caused by the availability of examples for old releases. We could hide those. |
Thank you guys. The examples are able to run without any problem. It seems like there where 2 reasons causing the problems for my case.
Now the modeling can begin! :) |
Hello oemof community. For my master thesis I should model a heat network and I would like to use oemof for this. However, I have been experiencing problems installing oemof and the site packages for a few days now. The errors occur when importing the oemof site packages (oemof.tools, oemof.outputlib, ... ), while these packages are installed according to the Anaconda environment (see image). I am using Spyder as my programming environment. It seems that when I run the oemof_examples in spyder it is unable to find and use the packages, even though they are correctly installed in this location.
When running the code: basic_example.py from v0..x of the example codes I get the following error:
"ImportError: cannot import name 'helpers' from 'oemof.tools' (C:oemof.tools)"
Similar errors occur when running the other sample code. This while the Solver is installed correctly (see testcode):
Solver installed with oemof:
cbc: working
glpk: not working
gurobi: not working
cplex: not working
oemof successfully installed.
I am new to this platform and could use all the help I can get! Thanks in advance.
The text was updated successfully, but these errors were encountered: