-
Notifications
You must be signed in to change notification settings - Fork 36
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
ModuleNotFoundError: No module named 'withrootnotincwd' #46
Comments
Hi @supratik21, Thank you for this report. I will try to have a look at it when I get some time. |
Hello @jjerphan, Thank you for looking into this. I encountered this error while testing py2puml for my application. It'd be extremely helpful if you let me know once you have tested this from your end. Look forward to hearing from you soon. |
hello @supratik21 😃, thank you for your message. And thank you @jjerphan for giving some feedback. I investigated and there is no bug, but a misunderstanding:
# activates the environment to make py2puml available in the virtual environment
source .venv/bin/activate
py2puml tests/modules/withrootnotincwd/ tests.modules.withrootnotincwd It is because
# activates the environment to make py2puml available in the virtual environment
source .venv/bin/activate
# moves to the appropriate working directory before running the py2puml command
cd tests/modules
py2puml withrootnotincwd withrootnotincwd Some day, the |
Dear @lucsorel, @doyou89, @jonykalavera, @jjerphan,
While trying to generate UML content for "withrootnotincwd" module that is provided under /tests/modules/withrootnotincwd, I am encountering a ModuleNotFoundError.
Error below:
Note: This was identified by pytest.
After noticing this error, I tried running py2puml via CLI and encounter the same error:
In order to fix this error, I invested the segments.py file under test/modules/withrootnotincwd and notice that changing the following line:
from withrootnotincwd.point import Point
to
from .point import Point
fixes the issue.
Output after fixing the file:
Can you please take a look at it?
Thank you so much!
The text was updated successfully, but these errors were encountered: