Git Product home page Git Product logo

Comments (3)

aegirhall avatar aegirhall commented on August 17, 2024

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.

datatalking avatar datatalking commented on August 17, 2024

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.

salfredogonzalez avatar salfredogonzalez commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.