thebjorn/pydeps

Does it work under WSL2?

Closed this issue · 1 comments

Hello,

Executing pydeps on wsl2 gives me a powershell error

git clone https://github.com/pypa/sampleproject.git
python -m venv .venv
. .venv/bin/activate
pip install pydeps
pydeps setup.py

gives me:

Start : Impossible dÔÇÖex├®cuter cette commande en raison de lÔÇÖerreur┬á: Le fichier sp├®cifi├® est introuvable.
Au caractère Ligne:1 : 1
+ Start "/home/rog/DEV_TRASH/sampleproject/setup.svg"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation : (:) [Start-Process], InvalidOperationException
    + FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand

You'll probably want to run pydeps on the sources, not the setup.py, so

pip install -e .
pydeps src/sample

but the specific problem you're seeing is that pydeps doesn't know how to display a .svg file in this configuration. Add --display prog where prog is a program that can open .svg files when given as the only parameter on the command line.