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

Issues running the recipe_streaming_api #6

Closed
ranjeev75 opened this issue Sep 28, 2012 · 1 comment
Closed

Issues running the recipe_streaming_api #6

ranjeev75 opened this issue Sep 28, 2012 · 1 comment

Comments

@ranjeev75
Copy link

HI

when I try to run the above code exactly as in this example I get two errors:

  1. Traceback (most recent call last):
    File "C:\Python27\Lib\site-packages\xy\out\GeoSpatial\Streamings.py", line 73, in
    streaming_api = tweepy.streaming.Stream(auth, CustomStreamListener(), timeout=60)
    TypeError: init() takes at least 4 arguments (4 given)

When I try pass just the 'auth' parameter the above error comes. I've upgraded tweepy to 1.7.1 and still the same error.

  1. More weirdly though, is that when it does run it only does for approximately 22 seconds before terminating and there is no output in the console.

The code is exactly as yours and the argv i'm passing is something like JustinBieber and other high volume queriies.

Thanks

@ranjeev75
Copy link
Author

Hi

Think both these issues have been resolved by installing to tweepy 1.9. Now takes 3 arguments and console outputs the timeline for queries as expected.

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

1 participant