Twitter Python API в терминале - установка ошибок

1

Я установил следующие библиотеки и прошел все шаги в настройке twitter python:

httplib2-0.7.1          simplegeo-python-oauth2-1fcc1a6
python-twitter-0.8.2        simplejson-2.1.6

Я использую инструкции по установке здесь: http://code.google.com/p/python-twitter/

Когда я запускаю тест python setup.py, я получаю 17 ошибок. Вот фрагмент вывода (извините, много):

testNewFromJsonDict (twitter_test.UserTest)
Test the twitter.User NewFromJsonDict method ... ok
testProperties (twitter_test.UserTest)
Test all of the twitter.User properties ... ok
testCreateFriendship (twitter_test.ApiTest)
Test the twitter.Api CreateFriendship method ... ERROR
testDestroyDirectMessage (twitter_test.ApiTest)
Test the twitter.Api DestroyDirectMessage method ... ERROR
testDestroyFriendship (twitter_test.ApiTest)
Test the twitter.Api DestroyFriendship method ... ERROR
testDestroyStatus (twitter_test.ApiTest)
Test the twitter.Api DestroyStatus method ... ERROR
testGetDirectMessages (twitter_test.ApiTest)
Test the twitter.Api GetDirectMessages method ... ERROR
testGetFeatured (twitter_test.ApiTest)
Test the twitter.Api GetFeatured method ... ERROR
testGetFollowers (twitter_test.ApiTest)
Test the twitter.Api GetFollowers method ... ERROR
testGetFriends (twitter_test.ApiTest)
Test the twitter.Api GetFriends method ... ERROR
testGetFriendsTimeline (twitter_test.ApiTest)
Test the twitter.Api GetFriendsTimeline method ... ERROR
testGetPublicTimeline (twitter_test.ApiTest)
Test the twitter.Api GetPublicTimeline method ... ERROR
testGetReplies (twitter_test.ApiTest)
Test the twitter.Api GetReplies method ... ERROR
testGetStatus (twitter_test.ApiTest)
Test the twitter.Api GetStatus method ... ERROR
testGetUser (twitter_test.ApiTest)
Test the twitter.Api GetUser method ... ERROR
testGetUserTimeline (twitter_test.ApiTest)
Test the twitter.Api GetUserTimeline method ... ERROR
testPostDirectMessage (twitter_test.ApiTest)
Test the twitter.Api PostDirectMessage method ... ERROR
testPostUpdate (twitter_test.ApiTest)
Test the twitter.Api PostUpdate method ... ERROR
testTwitterError (twitter_test.ApiTest)
Test that twitter responses containing an error message are wrapped. ... ERROR
  • 0
    ну какие ошибки ты получаешь? ты подключен к интернету?
Теги:
twitter
python-twitter

1 ответ

0
Лучший ответ

Я думаю, что сообщения об ошибках, которые вы пропустили, содержат важную информацию для устранения неполадок. Предположим, вы загрузили файл tar.gz из раздела "Загрузки" проекта, но по какой-то причине не упаковали тестовые данные. Поэтому причиной сбоя должно быть то, что он не смог найти требуемые данные тестирования. Вы можете увидеть в своем репозитории: http://code.google.com/p/python-twitter/source/browse/#hg%2Ftestdata

Если это так, не паникуйте. Просто продолжайте взаимодействие с реальным миром с API twitter.

  • 0
    это, похоже, сработало, но я также перезагружал с GitHub, который исправил все проблемы. Спасибо!

Ещё вопросы

Сообщество Overcoder
Наверх
Меню