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

pytm --report gives an error #224

Open
ccc17as opened this issue Oct 26, 2023 · 4 comments
Open

pytm --report gives an error #224

ccc17as opened this issue Oct 26, 2023 · 4 comments

Comments

@ccc17as
Copy link

ccc17as commented Oct 26, 2023

Running on a Mac. I could execute the dfd and sequence flow diagram but when trying to generate a report I get the below error,

python3 tm.py --report /docs/baseline.md
Traceback (most recent call last):
File "/tm.py", line 127, in
tm.process()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pytm/pytm.py", line 1062, in process
print(self.report(result.report))
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pytm/pytm.py", line 1003, in report
with open(template_path) as file:
^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/docs/baseline.md'

@raphaelahrens
Copy link
Contributor

Hi

The problem is that you run the command with the file /docs/baseline.md, which is a path to a file named baseline.md in a folder named docs in the root folder (/), this is a path to an unexciting file.
This is most likely not what you want to do.

What you need to do is download a template file from https://github.com/izar/pytm/tree/master/docs .
For example https://github.com/izar/pytm/blob/master/docs/basic_template.md and then use the path where you have downloaded the file to.

Copy link
Collaborator

izar commented Oct 27, 2023

Try docs rather than /docs ?

@raphaelahrens
Copy link
Contributor

@ccc17as Were you able to make it work?

@Enigmatyk
Copy link

Or try python3 tm.py --report ./docs/baseline.md

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

4 participants