Skip to content

pydeps no longer supports files in subdirectories #179

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

Closed
vonschultz opened this issue Apr 25, 2023 · 3 comments
Closed

pydeps no longer supports files in subdirectories #179

vonschultz opened this issue Apr 25, 2023 · 3 comments
Labels

Comments

@vonschultz
Copy link

vonschultz commented Apr 25, 2023

Setup

mkdir a
touch a/{b,c}.py
echo "import c" >> a/b.py

Old behavior / Expected behavior

Using pydeps version 1.11.2, the following works perfectly:

$ pydeps a/b.py

At pydeps a/b.py an image shows up, showing c→b.

New behavior / Error

Using pydeps version 1.12.1, we get the following error:

$ pydeps a/b.py

	ERROR: [Errno 2] No such file or directory: 'a/b.py'
	(Did you forget to include an __init__.py?)

The program exits with an error. Given the error message, it is worth noting that touch a/__init__.py does not make the error go away. Neither does touch __init__.py.

@thebjorn thebjorn added the bug label Apr 25, 2023
@thebjorn
Copy link
Owner

Hi @vonschultz , that sounds like a bug.

thebjorn added a commit that referenced this issue Apr 26, 2023
thebjorn added a commit that referenced this issue Apr 26, 2023
* Branch to work on creating dependency for
all sub-directories (cf. issue #174).

I'm not sure if this is the way to do it though, it would probably be better
if py2dep could be called for each subdirectory and then the resulting
dep-graphs combined..? (although that will cause large parts of the source
tree to be re-parsed)

* Fix for #179

* update intersphinx format
@thebjorn
Copy link
Owner

@vonschultz check out v1.12.2 now on PyPI, it should fix this issue.

@vonschultz
Copy link
Author

This works with v1.12.2, thanks for the quick fix.

I'm afraid I stumbled onto a new issue, though: #182

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants