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

diagrams.generic.os.Raspbian is not importing #836

Open
jahway603 opened this issue Jan 16, 2023 · 2 comments
Open

diagrams.generic.os.Raspbian is not importing #836

jahway603 opened this issue Jan 16, 2023 · 2 comments

Comments

@jahway603
Copy link

I am not able to import diagrams.generic.os.Raspbian but I am able to get LinuxGeneral working.

I grep'ed thru the code and do see Raspbian as an option in diagrams/generic/os.py

The error I receive is ImportError: cannot import name 'Raspbian' from 'diagrams.generic.os'

@bdsoha
Copy link
Contributor

bdsoha commented Feb 2, 2023

@jahway603 Try using from diagrams.generic.os import Raspbian instead of import diagrams.generic.os.Raspbian.

@jahway603
Copy link
Author

Tried that and got the following:

Traceback (most recent call last):
  File "/mnt/mydata/OMIT/dev/python/my-diagram.py", line 7, in <module>
    from diagrams.generic.os import Raspbian
ImportError: cannot import name 'Raspbian' from 'diagrams.generic.os' (/home/OMIT/.local/share/virtualenvs/diagrams-NrMAsCZV/lib/python3.10/site-packages/diagrams/generic/os.py)

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

2 participants