I'm attempting to use the Python module pydeps
(installed with mamba install pydeps
) to analyze the dependencies in my project. However, when I run the command pydeps main.py
(perhaps "main.py" is not the most informative script name ever), I get the following output:
<pydeps_folder>/pystdlib.py:17: UserWarning: stdlib_list does't support Python 3.10 yet, pydeps will use symbols from 3.9 for now.
warnings.warn(
ERROR: While opening '<working_directory>/main.svg': [Errno 2] No such file or directory: 'xdg-open' (can be caused by not finding the program to open this file)
When I then run the command firefox main.svg
, I see a graph containing some of the files in my project, but not all of them, so it seems like pydeps succeeded partially. Do I need xdg-open
for pydeps to work? Or is there any way I can make pydeps work by telling it to just generate the svg file and not try to open it?
from pydeps fails to generate dependency graph
No comments:
Post a Comment