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

Python version? #391

Closed
simonjwright opened this issue Aug 5, 2020 · 3 comments
Closed

Python version? #391

simonjwright opened this issue Aug 5, 2020 · 3 comments
Assignees

Comments

@simonjwright
Copy link

While running

python ada/manage.py generate -P

I got

 File "/Volumes/Miscellaneous2/libadalang/venv/src/langkit/langkit/documentation.py", line 27, in <module>
    from typing import (Any, Callable, Dict, List, Optional, Protocol, Set,
ImportError: cannot import name 'Protocol' from 'typing' (/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/typing.py)

Looks as though we need Python 3.8 now, not the 3.7+ noted in the README?

@steve-cs
Copy link

steve-cs commented Aug 5, 2020

Commit 6fa402f changed the Travis build to 3.8 so that appears to be what Adacore is testing against now.

@simonjwright
Copy link
Author

Indeed. And 3.8.5 works OK.

@pmderodat
Copy link
Member

Hello,

Thank you for reporting this inconsistency: we’ll fix the README shortly.

@pmderodat pmderodat self-assigned this Aug 12, 2020
pmderodat added a commit to pmderodat/langkit that referenced this issue Aug 12, 2020
pmderodat added a commit to pmderodat/langkit that referenced this issue Aug 13, 2020
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

3 participants