Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean environment, example code will not execute #122

Open
flyguybravo opened this issue Jul 28, 2020 · 2 comments · May be fixed by #127
Open

clean environment, example code will not execute #122

flyguybravo opened this issue Jul 28, 2020 · 2 comments · May be fixed by #127

Comments

@flyguybravo
Copy link

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  
@Arlington1985 Arlington1985 linked a pull request Jul 30, 2020 that will close this issue
@Jeremie-Chauvel
Copy link

Jeremie-Chauvel commented Aug 8, 2020

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)

@redcatsec
Copy link

custom_style_2 is also not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants