Has anyone ever used PythonAnywhere to host opensource python program called changedetection?
I'm having trouble with the web app WSGI file, which is the file telling the web app where to find the app to run. It seems super simple (I thought) even a newbie like me should be able to do it, right? :-(
I cloned the files from Github to the directory /home/michaelhowardsandiego/.local/lib/python3.10/site-packages/ then installed the program which created a directory called changedetectionio
But when I set the path using this directory and attempt to import the program as an app in the WSGI file per the docs, I get the below errors.
The answer is simple, right! Any ideas? Thank you for any help it will be greatly appreciated!
Michael
> 2025年02月18日 22:07:11,198: Error running WSGI application
> 2025年02月18日 22:07:11,206: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_NOTIFY_POLICY'
> 2025年02月18日 22:07:11,206: File "/var/www/michaelhowardsandiego_pythonanywhere_com_wsgi.py", line 70, in <module>
> 2025年02月18日 22:07:11,207: from changedetectionio import app as application
> 2025年02月18日 22:07:11,207:
> 2025年02月18日 22:07:11,207: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/changedetectionio/__init__.py", line 11, in <module>
> 2025年02月18日 22:07:11,207: import eventlet
> 2025年02月18日 22:07:11,207:
> 2025年02月18日 22:07:11,207: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/__init__.py", line 6, in <module>
> 2025年02月18日 22:07:11,208: from eventlet import convenience
> 2025年02月18日 22:07:11,208:
> 2025年02月18日 22:07:11,208: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/convenience.py", line 7, in <module>
> 2025年02月18日 22:07:11,208: from eventlet.green import socket
> 2025年02月18日 22:07:11,209:
> 2025年02月18日 22:07:11,209: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/green/socket.py", line 4, in <module>
> 2025年02月18日 22:07:11,209: __import__('eventlet.green._socket_nodns')
> 2025年02月18日 22:07:11,209:
> 2025年02月18日 22:07:11,209: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/green/_socket_nodns.py", line 11, in <module>
> 2025年02月18日 22:07:11,209: from eventlet import greenio
> 2025年02月18日 22:07:11,210:
> 2025年02月18日 22:07:11,210: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/greenio/__init__.py", line 1, in <module>
> 2025年02月18日 22:07:11,210: from eventlet.greenio.base import * # noqa
> 2025年02月18日 22:07:11,210:
> 2025年02月18日 22:07:11,210: File "/home/michaelhowardsandiego/.local/lib/python3.10/site-packages/eventlet/greenio/base.py", line 455, in <module>
> 2025年02月18日 22:07:11,210: from OpenSSL import SSL
> 2025年02月18日 22:07:11,211:
> 2025年02月18日 22:07:11,211: File "/usr/local/lib/python3.10/site-packages/OpenSSL/__init__.py", line 8, in <module>
> 2025年02月18日 22:07:11,211: from OpenSSL import crypto, SSL
> 2025年02月18日 22:07:11,211:
> 2025年02月18日 22:07:11,211: File "/usr/local/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1570, in <module>
> 2025年02月18日 22:07:11,211: class X509StoreFlags(object):
> 2025年02月18日 22:07:11,212:
> 2025年02月18日 22:07:11,212: File "/usr/local/lib/python3.10/site-packages/OpenSSL/crypto.py", line 1589, in X509StoreFlags
> 2025年02月18日 22:07:11,212: NOTIFY_POLICY = _lib.X509_V_FLAG_NOTIFY_POLICY
-
You will not be able to run that on PythonAnywhereGlenn– Glenn2025年02月20日 09:41:10 +00:00Commented Feb 20, 2025 at 9:41
-
Thanks for that information! Can you share details -- you emailed me separately saying I need to potentially update pyopenssl to the specific version greenio needs. Will that not help?Michael Howard– Michael Howard2025年02月24日 16:12:10 +00:00Commented Feb 24, 2025 at 16:12