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 generate graph output due to incorrect arg parsing in 2.10.0 #269

Closed
peter-kipping-seequent opened this issue Jul 16, 2023 · 3 comments · Fixed by #271
Closed

Comments

@peter-kipping-seequent
Copy link

peter-kipping-seequent commented Jul 16, 2023

When running pipdeptree --graph-output png > ./test.png with the latest version (2.10.0)
We get the following error: AttributeError: 'Namespace' object has no attribute 'graph_output'

Full traceback:
image

Suspect something to do with

render_type.add_argument(
has caused the 'graph_output' field to not be set correctly as it appears its only getting assigned to the 'output_format' value. So not sure what the check at
assert options.graph_output is not None # noqa: S101
is actually supposed to be checking anymore?

Current work around:
Currently pinning the version of pipdeptree back to 2.9.6 works fine for my use-case pip install pipdeptree==2.9.6. Doesn't look like 2.10.0 actually introduced any massive new functionality so hopefully this workaround will be fine for most people.

@peter-kipping-seequent
Copy link
Author

For completeness, running with graphvis 0.20.1 in WSL running Ubuntu 22.04.2 with Python 3.11.

pip install --compile graphviz pipdeptree
image

@davidzhouwa
Copy link

Encountered the same, please release with a fix.

@gaborbernat
Copy link
Member

gaborbernat commented Jul 16, 2023 via email

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

Successfully merging a pull request may close this issue.

3 participants