-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Sorry, image link is broken" on all images attempted #41
Comments
Hello @ftw37 , can you specify your Python version ? |
ftw@ftw-701SD:~$ python -V |
@ftw37: thanks for report, I am using Python 2.7 on Mac and Linux and don't experienced same problem. Can you try the following line in a Python interpreter and let me know if there is an exception ? >>> import requests
>>> from PIL import Image
>>> from io import BytesIO
>>> res = requests.get('https://avatars3.githubusercontent.com/u/479796?v=2&s=460')
>>> Image.open(BytesIO(res.content)) |
|
So there is no exception ? It's really strange. May I see the output of |
|
I guess that you installed by In that case, please provide the output of
and I will try to continue to debug. By the way, what OS are you using ? |
Ubuntu 14.04.5 After installing using virtualenv method (and uninstalling prev version):
|
BTW, the image in this recent tweet did show up:
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
|
Does Anw, please stay for a while to see the "Sorry, image link is broken" error appears or not . |
|
Does the "Sorry, image link is broken" error still exists ? |
Yes, unfortunately |
Okay, let's go fix it up. except Exception as e:
print(e)
import traceback
print(traceback.format_exc())
printNicely(red('Sorry, image link is broken')) Then start the app, wait for an error and paste back here what is printed out :) |
|
After googling a bit, I think the solution will be sudo apt-get install libjpeg-dev
pip install -I PIL # inside virtualenv
rainbowstream -iot # this time should be fine |
Fixed. Thanks so much for your help! Had to follow similar instructions as above. Found here: |
👍 |
I'm having the same issue w/ Ubuntu 14.04 and Python 3.4.0. I your fix from Aug. 20th, however, it seems that PIL is no longer an available Python package: "Could not find any downloads that satisfy the requirement PIL." Traceback is pretty much the same. |
Every time an image is in a tweet, I get a "Sorry, image link is broken" instead of the inline image.
config
HEARTBEAT_TIMEOUT: 120
IMAGE_ON_TERM: True
THEME: monokai
ASCII_ART: True
HIDE_PROMPT: True
PREFIX: @ftw
SEARCH_MAX_RECORD: 5
HOME_TWEET_NUM: 5
RETWEETS_SHOW_NUM: 5
QUOTE_FORMAT: #comment RT #owner: #tweet
MESSAGES_DISPLAY: 5
TREND_MAX: 10
LIST_MAX: 5
HISTORY_FILENAME: completer.hist
IMAGE_SHIFT: 2
IMAGE_MAX_HEIGHT: 90
USER_DOMAIN: userstream.twitter.com
PUBLIC_DOMAIN: stream.twitter.com
SITE_DOMAIN: sitestream.twitter.com
The text was updated successfully, but these errors were encountered: