oemof / oemof-db

Open Energy Modelling Framework - An extension to use the oemof related postgis database (requires database access on oemof-server)
MIT License
5 stars 5 forks source link

No module named oemof.db #28

Open livhendx opened 7 years ago

livhendx commented 7 years ago

hi,

I'm getting started with oemof, but I can't figure out how to use oemof.db. I always get the error "No module named 'oemof.db'.

Thx!

birgits commented 7 years ago

Hi, could you please tell us a bit more about your problem? Did you install oemof.db using pip or just download the repository? If you installed oemof.db what operating system and python version are you using?

simnh commented 7 years ago

The complete error thrown by python is also interesting. Do you use a IDE, such as spyder? Which operating system are you using? Lots of questions, but as you just start with oemof, these information might as well be useful for question still to come :) . The more specific you are, the faster and better we can provide support.

livhendx commented 7 years ago

ok! some answers: I'm using spyder Python 3.5 If I run pip install oemof.db, I get the following error: ErmissionError: Access is denied C:\Users...\anaconda3\lib\site-packages\pandas\algos.cp35-win_amd64.pyd Win7 64bit

simnh commented 7 years ago

Permission error sound like you want to install oemof.bd somewhere, where you (as the current user) do not have permission to write or read files. I assume, you can not install any python packages this way?
You can try to test for example:

pip install pandas (which you would need anyway for oemof, and would be installed automatically)

birgits commented 7 years ago

Have you tried executing the shell or program where you run the installation as administrator?

simnh commented 7 years ago

Have you tried executing the shell or program where you run the installation as administrator?

you can do so with the runas command (you need to search for details)

livhendx commented 7 years ago

pip3 install oemof.db

and... it works!

Thx!

uvchik commented 7 years ago

Sorry. I just fixed it in the documentation.

gnn commented 7 years ago

Looks like this resurfaced again when installing the PyPi package. You can install via pip install -e and the package will be found. I updated the README.rst accordingly but I'll also keep this bug open until I finally figure out how to make oemof and oemof.db play well together in all cases. There's also an oemof issue related to that, which I'll have to dig up again. I might be closed too.