tox-dev / pipdeptree

A command line utility to display dependency tree of the installed Python packages

Home Page:https://pypi.python.org/pypi/pipdeptree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to generate graph output due to incorrect arg parsing in 2.10.0

peter-kipping-seequent opened this issue · comments

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.

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

Encountered the same, please release with a fix.