will8211 / unimatrix

Python script to simulate the display from "The Matrix" in terminal. Uses half-width katakana unicode characters by default, but can use custom character sets. Accepts keyboard controls while running. Based on CMatrix.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value error on first run

gamesbook opened this issue · comments

Ubuntu 14.04
Python 2.7.6

After following the install and run:

sudo curl -L https://raw.githubusercontent.com/will8211/unimatrix/master/unimatrix.py -o /usr/local/bin/unimatrix
sudo chmod a+rx /usr/local/bin/unimatrix
unimatrix -n -s 96 -l o

I get this error:

Traceback (most recent call last):
  File "/usr/local/bin/unimatrix", line 613, in <module>
    main()
  File "/usr/local/bin/unimatrix", line 608, in main
    curses.wrapper(_main)
  File "/usr/lib/python3.4/curses/__init__.py", line 94, in wrapper
    return func(stdscr, *args, **kwds)
  File "/usr/local/bin/unimatrix", line 555, in _main
    if key.get():
  File "/usr/local/bin/unimatrix", line 407, in get
    chr_kp = chr(kp).lower()
ValueError: chr() arg not in range(0x110000)

Thanks, I'll fix that

Should be fixed now

All fine, thanks.