Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./py4web.py run apps works fine but website shows "Something went wrong :-(" message over pythonanywhere.com #14

Open
moralesalexanderj opened this issue Nov 14, 2022 · 3 comments

Comments

@moralesalexanderj
Copy link

There was an error loading your PythonAnywhere-hosted site. There may be a bug in your code.

Error code: Unhandled Exception

@jparga
Copy link

jparga commented Dec 7, 2022

I solved a similar error creating a virtualenv with the proper python version and the required pip dependencies.

@usermicrodevices
Copy link

File "/usr/local/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1589, in X509StoreFlags
NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
[FAILED] loading showcase (module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY')

@usermicrodevices
Copy link

usermicrodevices commented Nov 28, 2024

python3 -m pip install -U --user pyopenssl
solve problem

also run not as bottle, use simple file /var/www/{mysite}_pythonanywhere_com_wsgi.py

import os
from py4web.core import wsgi
# BEGIN CONFIGURATION
PASSWORD_FILENAME = "password.txt"
DASHBOARD_MODE = "full"
APPS_FOLDER = "py4web/apps"
# END CONFIGURATION
password_file = os.path.abspath(
    os.path.join(os.path.dirname(__file__), PASSWORD_FILENAME)
)
application = wsgi(
    password_file=password_file, dashboard_mode=DASHBOARD_MODE, apps_folder=APPS_FOLDER
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants