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

Metadata.visualize with path parameter throws AttributeError #634

Closed
xamm opened this issue Nov 15, 2021 · 0 comments · Fixed by #635
Closed

Metadata.visualize with path parameter throws AttributeError #634

xamm opened this issue Nov 15, 2021 · 0 comments · Fixed by #635
Assignees
Labels
bug Something isn't working
Milestone

Comments

@xamm
Copy link
Contributor

xamm commented Nov 15, 2021

Environment Details

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

  • SDV version: 0.12.1
  • Python version: 3.8.12
  • Operating System: macOS

Error Description

When calling metadata.visualize() with a path specified an AttributeError is thrown.

Steps to reproduce

from sdv import load_demo
metadata, tables = load_demo(metadata=True)
metadata.visualize("./test.png")

Analysis

This occurs due to calling graphviz.backend.FORMATS instead of graphviz.FORMATS in Line 16 in visualization.py

As described in xflr6/graphviz#149 .backend should not be used.

Fix

change
if graphviz_extension not in graphviz.backend.FORMATS:

to
if graphviz_extension not in graphviz.FORMATS:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants