Forums

Error with pusher

Hello,

I've installed pusher - Successfully installed pusher-3.0.0

But when I import it in my py script I get this error in the log:

>  Error running WSGI application 2021-06-15 10:42:00,840:
> ModuleNotFoundError: No module named 'pusher' 2021-06-15 10:42:00,841:
> File "/var/www/xxxxx_pythonanywhere_com_wsgi.py", line 9, in <module>
> 2021-06-15 10:42:00,841:     from flask_app import app as application 
> # noqa 2021-06-15 10:42:00,841:  2021-06-15 10:42:00,841:   File "/home/xxxxx/mysite/flask_app.py", line 5, in <module> 2021-06-15
> 10:42:00,841:     import pusher

What is that? Thank you!

What command did you use to install it? If your website is running (say) Python 3.7, then you should use the pip3.7 package to install things, and likewise for other Python versions.

I run 2.7. Thank you!

okay, hope Giles's message helped!