Skip to content
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

I am not able to import Dataset #26

Closed
ashutosh1919 opened this issue Sep 17, 2019 · 5 comments
Closed

I am not able to import Dataset #26

ashutosh1919 opened this issue Sep 17, 2019 · 5 comments

Comments

@ashutosh1919
Copy link

from lofo import Dataset doesn't work and gives error of

cannot import name 'Dataset' from 'lofo'

But if I write from lofo.dataset import Dataset then it works fine.

I think it has something to do with init.py

@aerdem4
Copy link
Owner

aerdem4 commented Sep 17, 2019

Can you give more information? Which lofo version are you using? Which Python version? Did you pip install or git clone?

It should be able to imported because this unit test passes: https://github.com/aerdem4/lofo-importance/blob/master/tests/test_lofo_importance.py#L5

@ashutosh1919
Copy link
Author

I have tried both using pip install and git clone and both doesn't work. I am using python version 3.6 and lofo-importance version 0.2.3

@aerdem4
Copy link
Owner

aerdem4 commented Sep 17, 2019

I have created a clean virtualenv and tried to reproduce the issue now and couldn't reproduce.

@ashutosh1919
Copy link
Author

@aerdem4 , Let me try creating venv in my system and will try to use it. if I face the issue, i will make PR for this issue.

@ashutosh1919
Copy link
Author

Sorry for wrong issue @aerdem4 , It is working when I tried in venv. I think previously i was using 0.2.0. That's why it was not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants