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

cannot import name 'get_tutorial_dataset' from 'almirah.utils' #1

Closed
hrani opened this issue May 8, 2024 · 2 comments
Closed

cannot import name 'get_tutorial_dataset' from 'almirah.utils' #1

hrani opened this issue May 8, 2024 · 2 comments

Comments

@hrani
Copy link

hrani commented May 8, 2024

After install either via pip or git clone

from almirah.utils import get_tutorial_dataset
cannot import name 'get_tutorial_dataset' from 'almirah.utils'

@girishmm
Copy link
Member

girishmm commented May 8, 2024

This is a consequence of splitting utility functions. This is fixed in the dev branch. Till merge and doc generation, please use

from almirah.utils.lib import get_tutorial_dataset

@girishmm girishmm closed this as completed May 8, 2024
@hrani
Copy link
Author

hrani commented May 8, 2024

"tests/data/tutorial" does not exist for get_tutorial_dataset

@girishmm girishmm reopened this May 15, 2024
girishmm added a commit that referenced this issue May 15, 2024
The tutorial dataset was stored in tests/data/tutorial and a utility
function copied it to provided part. But it seems like this tests
directory is included while packaging, due to which an error is thrown
as raised issue #1. To fix this, tutorial dataset is created using a
series of python Path statements instead of copying a dummy file
directory.
girishmm added a commit that referenced this issue May 15, 2024
The tutorials have not been updated since v0.1.0, due to this
breakages as mentioned in #1 have occured. To fix this and other
unnoticed things, the tutorial and user guide have been revamped and
tested locally. New additions have been incorporated. There is still
work to do for a more friendly package and help is welcome for this.
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