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

unable to run this code from sdv.demo import load_tabular_demo its showing error and stating No module named 'sdv.demo' #2028

Closed
mansiresh opened this issue May 24, 2024 · 3 comments
Labels
bug Something isn't working resolution:WAI The software is working as intended

Comments

@mansiresh
Copy link

Environment Details

Please indicate the following details about the environment in which you found the bug:

  • SDV version:
  • Python version:
  • Operating System:

Error Description

<Replace this text with a description of what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.>

Steps to reproduce

<Replace this text with a description of the steps that anyone can follow to reproduce the error. If the error happens only on a specific dataset, please consider attaching some example data to the issue so that others can use it to reproduce the error.>

Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
@mansiresh mansiresh added bug Something isn't working new Automatic label applied to new issues labels May 24, 2024
@mansiresh
Copy link
Author

No module named 'sdv.demo'
the above is the error
Uploading Screenshot 2024-05-24 115915.png…

@npatki
Copy link
Contributor

npatki commented May 24, 2024

Hi @mansiresh, which website is telling you to do from svd.demo import load_tabular_demo?

Those instruction were for a very old version of SDV that is over 1 year old. For the most up-to-date instructions, please see our documentation website. The new code is:

from sdv.datasets.demo import download_demo

data, metadata = download_demo(
    modality='single_table',
    dataset_name='fake_hotel_guests'
)

Resources:

@npatki npatki added under discussion Issue is currently being discussed and removed new Automatic label applied to new issues labels May 24, 2024
@npatki
Copy link
Contributor

npatki commented May 30, 2024

Hello, I'm going to close out this thread since we've answered the question. Please feel free to reply if you are still unable to load a demo and we can always continue to investigate.

Alternatively, if you run across any new problems, you can always file a new issue. Thanks.

@npatki npatki closed this as completed May 30, 2024
@npatki npatki added resolution:WAI The software is working as intended and removed under discussion Issue is currently being discussed labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolution:WAI The software is working as intended
Projects
None yet
Development

No branches or pull requests

2 participants