-
I'm trying to follow basic guide from documentation at https://tweepy.readthedocs.io/en/latest/getting_started.html
I provide API key, API secret key, Access token, Access token secret as consumer_key, consumer_secret, access_token, access_token_secret respectively. This (seemingly) works.
Full log above. I tried googling around and found multiple answers, including older issues in this repo, but none of them work or address the issue (somehow). I'd like to imagine following first steps of example from documentation I shouldn't be able to screw up too much. What can be wrong, how to fix it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You're passing a generator as one or more of the credentials. They need to be strings or bytes. For code block usage, see https://docs.github.com/en/free-pro-team@latest/github/writing-on-github/creating-and-highlighting-code-blocks. |
Beta Was this translation helpful? Give feedback.
-
I am receiving this error when using a Docker container, @Nowado did you determine how you were passing a generator type as parameter? I've confirmed mine should all be interpreted as strings by printing their type. The code below runs fine locally but throes the error in this post's title when executed in a container:
|
Beta Was this translation helpful? Give feedback.
You're passing a generator as one or more of the credentials. They need to be strings or bytes.
For code block usage, see https://docs.github.com/en/free-pro-team@latest/github/writing-on-github/creating-and-highlighting-code-blocks.