diagrams icon indicating copy to clipboard operation
diagrams copied to clipboard

Diagrams code issue possibly due to python 3.11.x

Open jahway603 opened this issue 1 year ago • 1 comments

I went to update my network diagram I'd written a while ago (which had been working perfectly fine), but it's now giving me a new error message and I believe it may be an issue with python 3.11.x

I'm now running the following version of Python:

$ python --version
Python 3.11.3

This is the error I'm receiving:

$ python my-diagram.py 
Traceback (most recent call last):
  File "/<OMIT PATH>/python/my-diagram.py", line 3, in <module>
    from diagrams import Cluster, Diagram, Edge
ImportError: cannot import name 'Cluster' from 'diagrams' (unknown location)

I also received a similar error ImportError: cannot import name 'Diagram' from 'diagrams' (unknown location) when attempting to run the example quick start in the documentation here https://diagrams.mingrammer.com/docs/getting-started/installation#quick-start

jahway603 avatar Aug 04 '23 14:08 jahway603

It rather look like the diagrams are just not installed, rather than python 3.11 issue. Above the quick start you have diagrams installation instructions

Szwendacz99 avatar Aug 04 '23 14:08 Szwendacz99