Skip to content

'type' object is not subscriptable #8

Open

Description

@suchirs

Has there been any updates to python SDK ? I only see code from years ago. I would like to use Misty for my project but I know python well but the current SDK is very limited.

Activity

  1. rob-harrington commented on Apr 17, 2023

    @rob-harrington

    To my knowledge, there haven't been any updates to the SDK.

    Also, at a cursory glance (I'm on a phone rn), the issue is coming from a type hint. Worst case scenario, OP can always just remove the list[Argument] hint if they can't figure out the problem.

  2. HayleyO commented on Sep 19, 2023

    @HayleyO

    I had this issue too. I changed the list typing to

    def parse_arguments_into_kwargs(self, arguments: List[Argument]):

    on line 215 of RobotGenerator.py. This requires importing from typing import List. Then, I got a key error for object. I added "Object": "object" to the type_switch on line 78. I'm not sure if this is all the ideal solution (or if it is correct since I don't get any sort of outputs), but it does quiet any errors you get when using the RobotGenerator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions