Forums

vosk in flask API

Hello! I'm very new here. I want to create a flask API that would use vosk module. It works on my local machine. But it doesn't work at http://ksenia13.pythonanywhere.com/ It says 'Something went wrong :-(' I can't understand what the problem is because I can't find the logs. Could you help me, please?

What errors do you see in your logs? (link to logs are available on the "Web" page on PythonAnywhere).

Thank you for your answer! The log says: ModuleNotFoundError: No module named 'vosk' 2022-12-23 03:15:21,033: File "/var/www/ksenia13_pythonanywhere_com_wsgi.py", line 16, in <module> 2022-12-23 03:15:21,033: from main import app as application

I did install it, using https://www.pythonanywhere.com/user/ksenia13/consoles/26694785/, and uploaded the necessary folder 'model' but it still doesn't work.

There are multiple version of Python (and, respectively, pip) installed on PythonAnywhre. Make sure you installed the package for the same Python version / virtual environment that you use to run your web app.