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

[Bug][Installation] ModuleNotFoundError: contextvars #12

Closed
rajat404 opened this issue Feb 12, 2020 · 4 comments
Closed

[Bug][Installation] ModuleNotFoundError: contextvars #12

rajat404 opened this issue Feb 12, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@rajat404
Copy link
Contributor

OS: MacOS Catalina 10.15 Beta (19A536g)
Python Version: Python 3.6.5
I installed diagrams in a new virtual environment, using pip

While it installed the package successfully, when I tried to run the example mentioned in Quickstart guide, I got ModuleNotFoundError: No module named 'contextvars' error.

I believe the lib contextvcars needs to be specified in the setup file

@mingrammer mingrammer added the bug Something isn't working label Feb 12, 2020
@darkpixel
Copy link

Same here:

$ python --version
Python 3.6.9
$ pip freeze | grep -i diag
diagrams==0.2.3
$python diagram.py 
Traceback (most recent call last):
  File "diagram.py", line 2, in <module>
    from diagrams import Diagram
  File "/home/aaron/.virtualenvs/diagrams/lib/python3.6/site-packages/diagrams/__init__.py", line 1, in <module>
    import contextvars
ModuleNotFoundError: No module named 'contextvars'

@mingrammer
Copy link
Owner

mingrammer commented Feb 13, 2020

It is version issue for a library was added since Python 3.7. #13 can resolve this issue.

@mingrammer
Copy link
Owner

diagrams v0.2.4 is now released :)

Please check with this version.

@mingrammer
Copy link
Owner

I close this issue. Reopen later if needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants