Skip to content

Type error in pretain_interactive #218

@K9T33NwthTookThis

Description

@K9T33NwthTookThis

when i try to run python run_pretrained_interactive.py(or any run_ file) i get the error:

UserWarning: Using SDL2 binaries from pysdl2-dll 2.28.0
Traceback (most recent call last):
  File "/home/$USER/PokemonRedExperiments/baselines/run_pretrained_interactive.py", line 4, in <module>
    from red_gym_env import RedGymEnv
  File "/home/$USER/PokemonRedExperiments/baselines/red_gym_env.py", line 16, in <module>
    import mediapy as media
  File "/home/$USER/venv/lib/python3.13/site-packages/mediapy/__init__.py", line 129, in <module>
    import IPython.display
  File "/home/$USER/venv/lib/python3.13/site-packages/IPython/__init__.py", line 57, in <module>
    from .terminal.embed import embed
  File "/home/$USER/venv/lib/python3.13/site-packages/IPython/terminal/embed.py", line 15, in <module>
    from IPython.core.interactiveshell import InteractiveShell, make_main_module_type
  File "/home/$USER/venv/lib/python3.13/site-packages/IPython/core/interactiveshell.py", line 346, in <module>
    class InteractiveShell(SingletonConfigurable):
    ...<3755 lines>...
            pass
  File "/home/$USER/venv/lib/python3.13/site-packages/IPython/core/interactiveshell.py", line 355, in InteractiveShell
    ast_transformers: List[ast.NodeTransformer] = List(
                      ~~~~^^^^^^^^^^^^^^^^^^^^^
TypeError: type 'List' is not subscriptable

it may be important to note that:

  • instead of conda i am using the python's built in venv function because i seem to get less errors(to do with hnswlib) than with miniconda but i do get the same error if i use red_gym_env_minimal.py anyway
  • i had to use a script to go through the requirements and skip any modules that it could not install and then install as much as i could myself although i could not install of them, if required i could upload my installed packages list
  • i use arch linux

Metadata

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