0

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
2
  • You will not be able to run that on PythonAnywhere
    – Glenn
    Commented Feb 20 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? Commented Feb 24 at 16:12

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.