QSDsan icon indicating copy to clipboard operation
QSDsan copied to clipboard

#BUG# Diagram could not show.

Open Clubiy opened this issue 1 year ago • 3 comments

Please replace prompts with your situation, add a note (e.g., NA) if not applicable

Describe the problem When I followed the tutorial to complete all the environment configuration step by step, I found that I could not draw the system structure diagram, like the screenshot below. Is it Graphviz's problem?

To Reproduce Steps to reproduce the behavior, e.g.: I tried to change the version of python and qsdsan, python3.11 and python3.9, qsdsan1.3.1 and qsdsan1.4.0, but all faild.

Screenshots If applicable, add screenshots to help explain your problem. image Environment (please complete the following information):

  1. Versions of the following packages:

    • QSDsan=1.3.1 or 1.4.1
    • EXPOsan (if applicable)=1.4.1
    • BioSTEAM=2.49.4
    • Thermosteam=0.49.2
    • Graphviz=2.50.0

    If you are using pip-installed ones, you can get the info by pip show <PACKAGE_NAME> (e.g., pip show qsdsan).

    If you have cloned any of the following packages, please make sure your local and remote are in sync (either pull remote changes to local or push local changes to remote), then include links or point to the branches/forks you are using.

  2. Operating systems and version [e.g. macOS 12.1, Windows 11]

Additional context Add any other context about the problem here.

Clubiy avatar Dec 26 '24 08:12 Clubiy

image

Clubiy avatar Dec 26 '24 09:12 Clubiy

yes it's most likely a graphviz issue, are you using Windows or Mac?

also, if you set biosteam.preferences.raise_exception ti True, then run the codes to generate the graph, did you get more detailed exceptions?

yalinli2 avatar Dec 26 '24 12:12 yalinli2

Using Mac and Windows and Linux, all the same problem. And I set this parameter, but no exception was raised. Right now, I have no idea to solve this problem, so I decide to find my old machine, the environment there maybe working. Thank you for your support, and if you find a solution later, please let me know in time. It's a great help. Thank you!

Clubiy avatar Dec 26 '24 14:12 Clubiy

Hi @Clubiy , sorry I forgot about this issue, but were you able to get the diagrams now? Also, what editors are you using? I know in the past some people had problems with VS Code, but I can point you to someone who figured it out.

yalinli2 avatar Jul 23 '25 18:07 yalinli2

Hi @Clubiy , sorry I forgot about this issue, but were you able to get the diagrams now? Also, what editors are you using? I know in the past some people had problems with VS Code, but I can point you to someone who figured it out.

After I tryed a lot of ways but still couldn`t fix this problem, so I changed back the old version, and it can drew again! Anyway, thanks a lot to helping me!

Clubiy avatar Jul 24 '25 06:07 Clubiy

OK! I'm closing it for now - feel free to reopen/open a new one if it comes back. Thanks for letting me know!

yalinli2 avatar Jul 24 '25 12:07 yalinli2