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

_TypedDictMeta error on altair import #3649

Closed
jgunstone opened this issue Oct 22, 2024 · 2 comments
Closed

_TypedDictMeta error on altair import #3649

jgunstone opened this issue Oct 22, 2024 · 2 comments
Labels

Comments

@jgunstone
Copy link

What happened?

I get the following error with a fresh install of altair:

create env

mamba create -n alt-test python pandas altair
mamba activate alt-test

version

(alt-test) jovyan@PORT8002:~/tmp/altair-test$ mamba list alt
List of packages in environment: "/home/jovyan/micromamba/envs/alt-test"

  Name    Version  Build         Channel
──────────────────────────────────────────────
  altair  5.4.1    pyhd8ed1ab_1  conda-forge

error

(alt-test) jovyan@PORT8002:~/tmp/altair-test$ python
Python 3.13.0 | packaged by conda-forge | (main, Oct  8 2024, 20:04:32) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import altair as alt
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import altair as alt
  File "/home/jovyan/micromamba/envs/alt-test/lib/python3.13/site-packages/altair/__init__.py", line 650, in <module>
    from altair.vegalite import *
  File "/home/jovyan/micromamba/envs/alt-test/lib/python3.13/site-packages/altair/vegalite/__init__.py", line 2, in <module>
    from .v5 import *
  File "/home/jovyan/micromamba/envs/alt-test/lib/python3.13/site-packages/altair/vegalite/v5/__init__.py", line 4, in <module>
    from .api import *
  File "/home/jovyan/micromamba/envs/alt-test/lib/python3.13/site-packages/altair/vegalite/v5/api.py", line 618, in <module>
    class _ConditionClosed(TypedDict, closed=True, total=False):  # type: ignore[call-arg]
    ...<6 lines>...
        value: Any
TypeError: _TypedDictMeta.__new__() got an unexpected keyword argument 'closed'

What would you like to happen instead?

it works!

Which version of Altair are you using?

5.4.1

@MarcoGorelli
Copy link
Contributor

MarcoGorelli commented Oct 22, 2024

i think Python 3.13 support is still being worked on #3591, does it work with say Python3.12?

@jgunstone
Copy link
Author

it does - thank you

this issue is already being tracked here:
#3620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants