Forums

Tweepy error

Hello, my code works on my pc. When I tried in pythonanywhere it says:

AttributeError: module 'tweepy' has no attribute 'OAuth1UserHandler'

any advice for me?

Best regards .

Are you using the same version of the package here and there?

Hi.

I just check the versions;

4.10.0 on my pc

3.10.0 in python anywhere (I checked it on console. Actually I will run the code in tasks. I assume they will use the same version)

Is there any way to upgrade the version on Pythonanywhere?

Best regards.

Sure, see https://help.pythonanywhere.com/pages/InstallingNewModules

I just upgraded the package, and my code is working as expected. Thanks for your help.

Excellent, thanks for confirming that!