Comments (3)
Can you give further details about your environment? (OS, python version, console-menu version, etc. Also, how did you install console-menu - with pip, setup.py, etc?) I'm not seeing any issues with any of the examples; i've verified all examples on Linux, Mac, and Windows, so I'll need your input to try to reproduce the issue.
from console-menu.
Hi Aegirhall,
I'm looking at his thread and it shows he is having range vs xrange issues, isn't this a common python2 vs python3 issue? Similar to print vs print()? Code in python 2 was deprecated in the change to python3 so he would need to change print to print() etc ?
from console-menu.
I am running inside of a docker container python 2.7.9, a file with the lines:
from import consolemenu import *
from import consolemenu.items import *
menu = ConsoleMenu("Title")
menu.show()
And produces the same lines:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/consolemenu/console_menu.py", line 169, in _wrap_start
self._main_loop()
File "/usr/local/lib/python2.7/dist-packages/consolemenu/console_menu.py", line 225, in _main_loop
self.draw()
File "/usr/local/lib/python2.7/dist-packages/consolemenu/console_menu.py", line 233, in draw
prologue_text=self.prologue_text, epilogue_text=self.epilogue_text))
File "/usr/local/lib/python2.7/dist-packages/consolemenu/screen.py", line 74, in printf
print(*args, end='')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-77: ordinal not in range(128)
from console-menu.
Related Issues (20)
- External window opened by menu item hangs.
- Question about using FunctionItem.get_return()
- Textwrap3 import issue with pyinstaller HOT 3
- Suggestion: accept list of menu items as argument to console_menu.append_item
- How to properly exit the menu HOT 1
- Does not dynamically update submenus HOT 2
- add support for selecting by pressing number or letter HOT 3
- Load Menu Definition from a YAML formatted String HOT 2
- Questions about the cascade sub menu HOT 1
- demo doens't work HOT 2
- Feature Request - No menu border
- Request: Additional documentation regarding layered menus HOT 1
- Multiple use of "remove_item" fails
- Add type hints
- Dynamic Menu Items HOT 2
- ImportError: cannot import name 'SelectionMenu' from 'consolemenu' HOT 2
- Add support for Unicode wide characters HOT 2
- Drop/replace `ansiwrap` dependency; the module is deprecated
- How to display errors?
- 'SelectionMenu' object has no attribute 'text'
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 console-menu.