Skip to content

P3.8: cannot run: type object is not subscriptable #82

Open
@chris-aeviator

Description

Steps:

  1. activate a python 3.8 virtual env
  2. pip install jpterm
  3. run jpterm

❯ jpterm
Traceback (most recent call last):
  File "/home/my_user/micromamba/envs/my_env/bin/jpterm", line 5, in <module>
    from jpterm.cli import main
  File "/home/my_user/micromamba/envs/my_env/lib/python3.8/site-packages/jpterm/cli.py", line 3, in <module>
    from txl.cli import set_main, txl_main
  File "/home/my_user/micromamba/envs/my_env/lib/python3.8/site-packages/txl/cli.py", line 3, in <module>
    from .app import run
  File "/home/my_user/micromamba/envs/my_env/lib/python3.8/site-packages/txl/app.py", line 6, in <module>
    from txl import hooks
  File "/home/my_user/micromamba/envs/my_env/lib/python3.8/site-packages/txl/hooks.py", line 13, in <module>
    def component() -> Tuple[str, type[Component], Dict[str, Any]]:
TypeError: 'type' object is not subscriptable

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions