orakaro / rainbowstream

A smart and nice Twitter client on terminal written in Python.
https://github.com/orakaro/rainbowstream
MIT License
3.54k stars 260 forks source link

Rainbowstream Won't run #308

Closed johnpiers closed 3 years ago

johnpiers commented 3 years ago

I've tried everything and just cannot get rainbowstream to run or work. I've been using this since it got created and absolutely love this thing but am at a loss in terms of what to, if it's obvious then apologies but I don't really know where to start as regards finding the problem. I've installed it via "The Recommended Way" as opposed to the quick way that also did not work. Using python3, latest version of pip, my OS is Arch Linux. Thanks, Piers.

Traceback (most recent call last): File "/home/johnpiers/venv/bin/rainbowstream", line 5, in from rainbowstream.rainbow import fly File "/home/johnpiers/venv/lib/python3.9/site-packages/rainbowstream/rainbow.py", line 25, in from .draw import File "/home/johnpiers/venv/lib/python3.9/site-packages/rainbowstream/draw.py", line 15, in from .c_image import File "/home/johnpiers/venv/lib/python3.9/site-packages/rainbowstream/c_image.py", line 5, in from .py3patch import * File "/home/johnpiers/venv/lib/python3.9/site-packages/rainbowstream/py3patch.py", line 11, in unescape = HTMLParser().unescape AttributeError: 'HTMLParser' object has no attribute 'unescape'`

johnpiers commented 3 years ago

webgp-eu commented 16 hours ago • Hello, I have looked at the code and, on my computer, with Python 3.9.5, it seems to work with the following modification: in the file py3patch.py, add at the top of the file: import html and replace line number 11: unescape = HTMLParser().unescape with unescape = html.unescape I have not checked if this keeps the compatibility with previous versions of python, though. GP P.S. In fact, I have just noticed that there is already a pull request (#305 ) with the same solution...

Followed these instructions and got everything to work. Many thanks.