Skip to content

TypeError: __init__() got an unexpected keyword argument 'menu_position' #1

@Sqiu2

Description

@Sqiu2

Hello,

I am running into this issue when trying to lunch the GUI. Can someone please have a look at this?

Environment:
Windows 10 pro, Running on Microsoft power shell,
AnaConda: 4.10.1, Python 3.8.8, tensor flow: 2.5.0

File that causes error:
robot_gui.py

Error Message:
Traceback (most recent call last):
File "robot_gui.py", line 488, in
init_all()
File "robot_gui.py", line 370, in init_all
labbeling_menu = pygame_menu.Menu(*menu_size, 'Labelling',
TypeError: init() got an unexpected keyword argument 'menu_position'

Tried fixes that didn't solve the problem:
The error message indicates one unexpected argument being passed into the Menu function. I searched for variables that has similar names comparing to "Menu position" and find the variable "menu_pos" to be similar. Added "position = Menu_pos" to constructor the error changes to an assertion error internally within the Anaconda package. It is related to the variable height, did some modifications accordingly to line 370, but still didn't work. Since I am unable to modify the contents in the Anaconda package, I think I must be missing somethings, can someone offer help?

Thank you

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