Forums

Error running WSGI application

Hi !

I am getting this error when i try and run a function that uses tweepy through flask. All is well and runs OK when I run it from the file, but when i try and access it through flask, i get this error.

Error running WSGI application
2022-05-25 18:25:53,637: AttributeError: module 'tweepy' has no attribute 'Client'

I had this problem with tabulate, but running pip3.6 install tabulate fixed it (it was a module not found error). However, i don't know how to start fixing this.

Help would be greatly appreciated !

Are you running the script in the same environment / with the same Python version that your web app is being run with?