I just installed hjson and imported it into my python application that is being held on a heroku server. After pushing the new updated code that imports hjson, my application crashed.
Here is the stack trace after running heroku logs --tail
import config, requests, hjson
2022-07-07T17:14:22.626278 00:00 app[web.1]: ModuleNotFoundError: No module named 'hjson'
Let me know if the entire stack trace is needed. Then was the only thing I could find that I understood.
Where should I go from here? Is the error info I provided not enough to debug?
CodePudding user response:
As described in https://devcenter.heroku.com/articles/python-pip, Heroku installs Python modules from a list in requirements.txt
.
Make sure you add the library you're using for hjson to this list.