Closed AvansRobotics closed 2 years ago
You've probably installed the 0.5.0 version using pip. This issue is fixed if you clone the repo, check out the 0.6.0 tag and install that using python setup.py install --user
. You might need to install the "deprecated" package using pip before that, but then it should work.
This is an old one, I'm closing it because I'm not supporting python2. If it's still a problem, I recommend using python3 and a more recent version of curses-menu.
When I run the exacte example given in the README when I select the menu option with a FunctionItem, it will crash and not execute & return to the menu. this is the error:
I'm using Python 2.7.17
my FunctionItem(...) looks like this:
function_item_initialize = FunctionItem("Initialize", pub_state_request.publish, [States.INITIALIZE.value])
And this is the function I am trying to call: pub_state_request.publish(2)