CVUT-FS-12110 / Design-of-Information-Systems

Source codes for DIS and PIS courses.
MIT License
0 stars 28 forks source link

Graphviz needs to be installed error #2

Open Yoliq opened 1 year ago

Yoliq commented 1 year ago

Windows 10 OS using powershell according to instructions yields result:

PS C:\Windows\system32> C:\Users\s4tyd\appdata\local\programs\python\python310\Scripts\pyreverse -o png C:\Users\s4tyd\Downloads\umbrello\Design-of-Information-Systems-master\diagram_generation\sample 'Graphviz' needs to be installed for your chosen output format.

After installing Graphviz from https://graphviz.org/download/ using *exe installer the issue was solved. It is needed to select option "add graphviz to path" option during installation.

Working example:

PS C:\Users\s4tyd> C:\Users\s4tyd\appdata\local\programs\python\python310\Scripts\pyreverse -o png C:\Users\s4tyd\Downloads\umbrello\Design-of-Information-Systems-master\diagram_generation\sample Format png is not supported natively. Pyreverse will try to generate it using Graphviz... parsing C:\Users\s4tyd\Downloads\umbrello\Design-of-Information-Systems-master\diagram_generation\sample.py... PS C:\Users\s4tyd>

The reverse diagram *png file is saved into current path selected in powershell/command line (for example above it is saved as 'classes.png' file in C:\Users\s4tyd

Yoliq commented 1 year ago

Issue already solved and can be closed. Instructions how to solve the issue wrote down into the ticket. Please implement precondition that graphviz needs to be installed and included in system path for this manual to work on Windows