Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

No module named oemof.db #28

Open
livhendx opened this issue Jan 23, 2017 · 9 comments
Open

No module named oemof.db #28

livhendx opened this issue Jan 23, 2017 · 9 comments
Assignees
Labels

Comments

@livhendx
Copy link

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
Copy link
Member

birgits commented Jan 23, 2017

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
Copy link
Member

simnh commented Jan 23, 2017

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
Copy link
Author

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
Copy link
Member

simnh commented Jan 24, 2017

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
Copy link
Member

birgits commented Jan 24, 2017

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

@simnh
Copy link
Member

simnh commented Jan 24, 2017

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
Copy link
Author

livhendx commented Feb 7, 2017

pip3 install oemof.db

and... it works!

Thx!

@uvchik
Copy link
Member

uvchik commented Feb 7, 2017

Sorry. I just fixed it in the documentation.

@uvchik uvchik closed this as completed Feb 7, 2017
@gnn gnn self-assigned this Jun 7, 2017
@gnn gnn added the bug label Jun 7, 2017
@gnn
Copy link
Member

gnn commented Jun 7, 2017

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.

@gnn gnn reopened this Jun 7, 2017
gnn added a commit that referenced this issue Jun 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants