I've installed programy on PythonAnywhere and have been trying to run the ybot webchat client using WSGI, currently without success when trying to import APP using this in the WSGI.config.
from programy.clients.restful.flask.webchat.client import APP as application # noqa
with the following error:
2021-02-02 11:33:22,799: Error running WSGI application
2021-02-02 11:33:22,801: ImportError: cannot import name 'APP' from 'programy.clients.restful.flask.webchat.client'
(/home/quiraang/.virtualenvs/mickey/lib/python3.8/site-packages/programy/clients/restful/flask/webchat/client.py)
2021-02-02 11:33:22,802: File "/var/www/quiraang_eu_pythonanywhere_com_wsgi.py", line 18, in <module>
2021-02-02 11:33:22,802: from programy.clients.restful.flask.webchat.client import APP as application # noqa
The support team advise that it is because APP is within the if statement in client.py and the code is never run:
I'm a relative Python novice.
I've installed programy on PythonAnywhere and have been trying to run the ybot webchat client using WSGI, currently without success when trying to import APP using this in the WSGI.config.
with the following error:
The support team advise that it is because APP is within the if statement in client.py and the code is never run:
is there any advice you can give about how I might tackle this problem or, if as quite likely, I'm doing it incorrectly many thanks