-
Notifications
You must be signed in to change notification settings - Fork 787
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 2.7 Compatibility #1317
Comments
Altair is Python 2 compatible – we test Python 2.7 in our continuous integration suite. But this may be an issue with some particular minor release in Python 2.7. For example, this particular error comes up in Python 3.5.2, but not in Python 3.5.3 (see #839) What exact version of Python 2.7 are you using? >>> import sys
>>> sys.version_info |
Which I'm assuming means 2.7.15 |
What version of the typing library do you have installed? import typing
typing.__version__ |
Sorry, that doesn't work. Instead run the bash command
|
I can reproduce the error with
|
To prevent this in the future, we should require typing>=3.6 in requirements.txt. |
Holy cow, thanks @jakevdp totally works. I will add the requirement to my docs. |
MAINT: Add typing package version to requirements.txt (fixes #1317)
Hey folks,
It looks like I'm unable to import altair and I think it may be related to my version of python. I'm stuck using legacy python (python 2.7), and whenever I try and import it I get the following error:
TypeError: 'ellipsis' object is not iterable
I can appreciate that I should be using python 3 but that isn't an option here. My question is, is this error unique to my python version? and if so what version of altair should I roll back to for the time being?
altair v2.3.0 py27_1001 conda-forge
ipython trace:
The text was updated successfully, but these errors were encountered: