Open flyguybravo opened 3 years ago
I set up a fresh, new environment to test PyInquirer with but all examples return the following (or similar) error:
python checkbox.py Traceback (most recent call last): File "checkbox.py", line 68, in <module> answers = prompt.prompt(questions, style=custom_style_2) AttributeError: 'function' object has no attribute 'prompt'
pip install was smooth:
Successfully installed PyInquirer-1.0.3 Pygments-2.6.1 prompt-toolkit-1.0.14 regex-2020.7.14 six-1.15.0 wcwidth-0.2.5
Environment:
Name Version Build Channel ca-certificates 2020.6.24 0 certifi 2020.6.20 py38_0 libcxx 10.0.0 1 libedit 3.1.20191231 h1de35cc_1 libffi 3.3 hb1e8313_2 ncurses 6.2 h0a44026_1 openssl 1.1.1g h1de35cc_0 pip 20.1.1 py38_1 prompt-toolkit 1.0.14 pypi_0 pypi pygments 2.6.1 pypi_0 pypi pyinquirer 1.0.3 pypi_0 pypi python 3.8.3 h26836e1_2 readline 8.0 h1de35cc_0 regex 2020.7.14 pypi_0 pypi setuptools 49.2.0 py38_0 six 1.15.0 pypi_0 pypi sqlite 3.32.3 hffcf06c_0 tk 8.6.10 hb0a8c7a_0 wcwidth 0.2.5 pypi_0 pypi wheel 0.34.2 py38_0 xz 5.2.5 h1de35cc_0 zlib 1.2.11 h1de35cc_3
The examples are not up to date as mentioned in the linked pr, use prompt(questions, style=custom_style_2) instead of prompt.prompt(questions, style=custom_style_2)
prompt(questions, style=custom_style_2)
prompt.prompt(questions, style=custom_style_2)
custom_style_2 is also not found
I set up a fresh, new environment to test PyInquirer with but all examples return the following (or similar) error:
pip install was smooth:
Environment: