markfink / whaaaaat

Inquirer.js port to Python (https://www.npmjs.com/package/inquirer). people blame me for staling this project. I do not have time to work on this right now - whaaaaat do you want me to do? take it offline?
MIT License
83 stars 9 forks source link

ImportError: cannot import name 'Token' from prompt_toolkit.token #29

Closed pwrenn closed 3 years ago

pwrenn commented 4 years ago

Stacktrace below: I am trying to implement a basic checkbox just to play around with the functionality from whaaaaat import prompt File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/whaaaaat/__init__.py", line 6, in <module> from prompt_toolkit.token import Token ImportError: cannot import name 'Token' from 'prompt_toolkit.token' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/prompt_toolkit/token.py)

rhysstubbs commented 4 years ago

@pwrenn Did you solve this?

cysun0226 commented 4 years ago

It is the same issue as https://github.com/markfink/whaaaaat/issues/23. I installed the requirements with prompt_toolkit==1.0.14 and it works now.