-
Notifications
You must be signed in to change notification settings - Fork 124
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
sudo pip3 install oemof, import oemof not working #44
Comments
The command was actually "sudo pip3 install oemof_base", forgot the underscore base. Importing the module in python still failed. |
This is confusing. Maybe we should change this. The name of the package on github or pypi is oemof_base but is installed as oemof. Have a look at the storage_invest example. There you can see how imports work. from oemof.core import energy_system as es Try the example but change line 147 if you do not have Gurobi installed. For testing purpose you could install the glpk solver: https://www.gnu.org/software/glpk/
Does the example works for you? |
The import of oemof in python worked fine when installing with 'sudo pip3 install -e /path/oemof_base-dev' (downloaded from github), also storage_invest.py runs without problems (thanks for the hint to use the 'glpk' solver). Just the import of oemof in python after installing it with 'sudo pip3 install oemof-base' as stated in the docs resulted in the missing module error. |
As it works for you it is not urgent, right?
@ulfmueller Do you had the same problems lately? (#38) |
yes I had the exact same problem and I performed the same work around as @S3PP .... |
No, its not urgent, I was just wondering! pip3 list | grep oemof ...import oemof or import oemof_base in python fails. |
Thank you for the report @S3PP, we will try to fix it. |
same problem here when using 'sudo pip3 install oemof-base', gonna use workaround too. |
The problem is different to the one that occured when we where using Edit: What I did technically fixes the issue, but sub-packages where still not importable. Commit 4290533 should complete the fix. |
The previous fix left sub-packages like e.g. `oemof.core` still unimportable. This should be resolved now. Hope I've learned my lesson and will start a new branch for all changes.
I tested it, uploaded the version |
Tried to install oemof with "sudo pip3 install oemof". Everything seems to work fine, no errors, but import oemof in python got me a "no module named oemof" error. Downloading the zipped package and installing with "pip3 -e /path" worked fine, import oemof also. Do I have to adjust some environment variables when installing otherwise?
The text was updated successfully, but these errors were encountered: