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

empty result with WARNING: SKIPPING ILLEGAL MODULE_NAME: D:.test.a #209

Closed
Yunchuan-Xu opened this issue Feb 1, 2024 · 2 comments
Closed

Comments

@Yunchuan-Xu
Copy link

Yunchuan-Xu commented Feb 1, 2024

[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
Copy link
Owner

thebjorn commented Feb 1, 2024

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

test

@Yunchuan-Xu
Copy link
Author

@thebjorn Now it works. Thanks for your explanation!

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

No branches or pull requests

2 participants