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

Pyreverse unable to detect relative imports #9559

Open
balintkeri opened this issue Apr 19, 2024 · 4 comments
Open

Pyreverse unable to detect relative imports #9559

balintkeri opened this issue Apr 19, 2024 · 4 comments
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling pyreverse Related to pyreverse component

Comments

@balintkeri
Copy link

Bug description

The pyreverse doesn't detect any relative import (from . import something), doesn't show any connection between packages.

Configuration

No response

Command used

pyreverse something -o html

Pylint output

The html files, but in the packages result, there were no connections between relative imported files

Expected behavior

A html, where i find connection between the relative imported files

Pylint version

pylint 3.1.0
astroid 3.1.0
python 3.9.12.

OS / Environment

No response

Additional dependencies

No response

@balintkeri balintkeri added the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Apr 19, 2024
@DanielNoord
Copy link
Collaborator

Without the python files you were running pyreverse on we can't really debug this.

@DanielNoord DanielNoord added Waiting on author Indicate that maintainers are waiting for a message of the author and removed Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling labels Apr 19, 2024
@Pierre-Sassoulas Pierre-Sassoulas added the pyreverse Related to pyreverse component label Apr 22, 2024
@balintkeri
Copy link
Author

dummy.zip

I have this example package. If i run pyreverse dummy -o html, i got this package diagram:

image

The import arrow is missing between the dummy2 and dummy3, dummy4

@balintkeri
Copy link
Author

@DanielNoord

@Pierre-Sassoulas Pierre-Sassoulas added Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling and removed Waiting on author Indicate that maintainers are waiting for a message of the author labels May 6, 2024
@DanielNoord
Copy link
Collaborator

Sorry I'm quite busy and pyreverse is not always on the top of my priorities.

I don't really like downloading random zip files from the internet. I guess if somebody has the time to locally check and fix this a PR would be welcome but we can't promise anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling pyreverse Related to pyreverse component
Projects
None yet
Development

No branches or pull requests

3 participants