Comments (11)
Yes that would be great, if you tag it with 1.1.0a1
(or whatever your next release is) "normal" people wont get it if they install from pip only if you specifically use the version number, that would be best 👍
from pyinquirer.
Currently, though I haven't figured out how to work around that without escaping the ascii codec. Though you can use unicode
as below to get through it without error.
unicode('John’s Pizza').encode("unicode_escape")
which will give out what we dont really want
>>> John\u2019s Pizza
So its better to avoid it. In case you were able to fix it, do share how you are able to. I'll be working on it in my free time to get it fixed.
from pyinquirer.
I have not tested it thoroughly, but it seems that removing the str()
call from PyInquirer/prompts/list.py
in line 92 solves the issue for now. See diff below:
@@ -89,7 +89,7 @@ class InquirerControl(TokenListControl):
tokens.append((T.Selected if selected else T,
'- %s (%s)' % (choice[0], choice[2])))
else:
- tokens.append((T.Selected if selected else T, str(choice[0]),
+ tokens.append((T.Selected if selected else T, choice[0],
select_item))
tokens.append((T, '\n'))
Maybe this will guide you in the right direction even if it won't solve the issue yet.
Thanos
from pyinquirer.
Oh lemme check that 👍 . Thanks
from pyinquirer.
Just ran into the same issue - would be great if we could merge that fix.
from pyinquirer.
I have added a fix to the dev
branch. I'll push it up to the master with some other fix.
from pyinquirer.
So I am gonna close this issue. :+1
from pyinquirer.
Sounds great, we want to use it as part of https://github.com/rasahq/rasa_core and since we still need to support py2 & py3 that would make this a lot easier 🚀
from pyinquirer.
Nice one, 👍 . Thanks for your time
from pyinquirer.
Do you have any plans when the next release will happen?
from pyinquirer.
No, not anytime soon. Cos I am planning to add editor
and some other fix. I need to carry out test against some environments. Just too busy these days in my company. Also I wanted to add some of the TODO feature. But, I can create a pre release version, so people can use most recent fix with no new feature. 👍
from pyinquirer.
Related Issues (20)
- AssertionError when using example
- MAC Terminal Support HOT 1
- Multiline Messages
- Crash on clic HOT 2
- ImportError: cannot import name 'Mapping' from 'collections' (C:\Python310\lib\collections\__init__.py) HOT 7
- Tests are failing on a clean fork HOT 1
- PageSize is not working
- My HOT 1
- Applying style to a prompt throws an error HOT 3
- List input with prompt multiple lines long moves down a line every time cursor moves
- Request: Upgrade code for compatibility with prompt_toolkit 3.0.29
- Typo in 'input.py' HOT 2
- Separator colour isn't applied for 'list' types.
- Add support for Python version 3.10 HOT 4
- prompt.prompt should be prompt(questions, style=custom_style_2)
- Request: add option for "select all"/"unselect all" to checkbox question type HOT 1
- ImportError: cannot import name 'Mapping' from 'collections' error when importing PyInquirer | HAS SOLUTION HOT 7
- prompt_toolkit version for pyinquirer not compatible with ipython HOT 2
- Accessing the variable input
- ModuleNotFoundError: PyInquirer Not Detected in Virtual Environment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyinquirer.