Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'Twython' from partially initialized module 'twython' (most likely due to a circular import) #536

Open
Open
'Twython' from partially initialized module 'twython' (most likely due to a circular import)#536

Description

python 3.8.2
twython 3.8.2

ImportError: cannot import name 'Twython' from partially initialized module 'twython' (most likely due to a circular import)

import sys
import string
from twython import Twython

twitter = Twython('Insert Consumer Key Here',
'Insert Consumer Secret Key',oauth_version=2)
Access_token = twitter.obtain_access_token()
t = Twython('Insert Consumer Key', access_token=Access_token)

user_timeline = t.search(q='@PureMichigan', count=20, include_rts=1)

for tweets in user_timeline['statuses']:
print(tweets['text'] +"\n")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions