mrschue / lobot

Lobot is a cloud helper for easily managing/using existing instances on Amazon's Elastic Compute Cloud (EC2).
MIT License
2 stars 0 forks source link

Bugfix/PR in PyInquirer breaks lobot #1

Closed mrschue closed 3 years ago

mrschue commented 3 years ago

A change in the _prompttoolkit package significantly changed in interface of the package. This leads to the pip-version of PyInquirer requiring the outdate _prompttoolkit==1.0.14 (throwing compatibility issues with Jupyter).

Alternatively, a PR fixing this has been merged in the master branch of PyInquirer, resolving this issue when the github version is installed directly.

It seems, however, that this changed the interface of PyInquirers 'prompt':

Traceback (most recent call last):
  File "./lobot.py", line 530, in <module>
    chosen_instance = ask_instance(instances)
  File "./lobot.py", line 453, in ask_instance
    answer = prompt(instance_prompt)['instance'].split(" :: ")[0]
TypeError: 'module' object is not callable

ToDo:

mrschue commented 3 years ago

Issue has been fixed in latest version. prompt is now module and needs to be called as prompt.prompt().

PyInquirer installation remark added to readme.