empty result with WARNING: SKIPPING ILLEGAL MODULE_NAME: D:.test.a
Yunchuan-Xu opened this issue · 2 comments
Yunchuan-Xu commented
[Environment]
(venv) PS D:\> pydeps --version
pydeps v1.12.18
[Directory Structure]
D:\test
├─ a.py
└─ b.py
[Case]
(venv) PS D:\> pydeps .\test\
dummymodule.py:139: WARNING: SKIPPING ILLEGAL MODULE_NAME: D:.test.a
dummymodule.py:139: WARNING: SKIPPING ILLEGAL MODULE_NAME: D:.test.b
The output svg does not contain any graph elements.
thebjorn commented
Hi @Yunchuan-Xu and thank you for your interest in pydeps.
The test directory is not a valid module (you'll need an __init__.py
file). To get any output you'll need to have imports in the files, eg. (https://pypi.org/project/yamldirs/
):
c:\srv\tmp\pydeps209> yamldirs test
test:
__init__.py: ''
a.py: |
from . import b
b.py: |
from . import a
c:\srv\tmp\pydeps209> pydeps -Tpng test
(-Tpng
because github doesn't like pasted svgs..) gives me
Yunchuan-Xu commented
@thebjorn Now it works. Thanks for your explanation!