Skip to content
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

TypeError: 'Media' object has no attribute '__getitem__'? #7

Open
ghost opened this issue Jul 26, 2016 · 2 comments
Open

TypeError: 'Media' object has no attribute '__getitem__'? #7

ghost opened this issue Jul 26, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2016

hi, whenever i try to run this progam i get this error

[mindcrime@PowerSlave home]$ twphotos -u wired
Retrieving photos from Twitter API...
Traceback (most recent call last):
File "/usr/bin/twphotos", line 9, in
load_entry_point('twitter-photos==0.2.0', 'console_scripts', 'twphotos')()
File "/usr/lib/python2.7/site-packages/twphotos/photos.py", line 274, in main
twphotos.get()
File "/usr/lib/python2.7/site-packages/twphotos/photos.py", line 77, in get
num=self.num)
File "/usr/lib/python2.7/site-packages/twphotos/photos.py", line 102, in load
if m['type'] == 'photo':
TypeError: 'Media' object has no attribute 'getitem'

should i be using python 3 or is regular python ok?

@juanchorossi
Copy link

+1

@shichao-an
Copy link
Owner

Hi, @Botgod and @juanchorossi,

I created a new release v0.3.0 to PyPI. It should fix the issue. Can you reinstall it and try again?

pip install -U twitter-photos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants