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

Import Errors When Launching Simplemonitor #1162

Open
haderp opened this issue Feb 26, 2023 · 5 comments
Open

Import Errors When Launching Simplemonitor #1162

haderp opened this issue Feb 26, 2023 · 5 comments
Assignees

Comments

@haderp
Copy link

haderp commented Feb 26, 2023

When trying to load the simple monitor the following errors occur:

Traceback (most recent call last):
File "/home/user/simplemonitor/bin/simplemonitor", line 5, in
from simplemonitor.monitor import main
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/monitor.py", line 10, in
from .simplemonitor import SimpleMonitor
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/simplemonitor.py", line 15, in
from .Alerters.alerter import Alerter
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/Alerters/init.py", line 5, in
from .bulksms import BulkSMSAlerter
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/Alerters/bulksms.py", line 7, in
from ..Monitors.monitor import Monitor
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/Monitors/init.py", line 21, in
from .network import (
File "/home/user/simplemonitor/lib/python3.9/site-packages/simplemonitor/Monitors/network.py", line 13, in
import OpenSSL.SSL
File "/home/user/simplemonitor/lib/python3.9/site-packages/OpenSSL/init.py", line 8, in
from OpenSSL import crypto, SSL
File "/home/user/simplemonitor/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1556, in
class X509StoreFlags(object):
File "/home/user/simplemonitor/lib/python3.9/site-packages/OpenSSL/crypto.py", line 1577, in X509StoreFlags
CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

Any feedback on how to resolve the errors would be greatly appreciated.

@jamesoff
Copy link
Owner

Could you try pip install --upgrade pyOpenSSL for the virtualenv simplemonitor is installed in?

@haderp
Copy link
Author

haderp commented Feb 28, 2023

Upgrading pyOpenSSL after installing simplemonitor resolved the issue. When installing simplemonitor using pip install simplemonitor it installs pyOpenSSL-20.0.1 and will give that error every time you try to launch. Once upgraded everything works as expected. Thanks for the direction as I've been chasing the root cause of the error for a week without finding the exact offender.

edit: removed a word

@jamesoff
Copy link
Owner

Thanks for confirming. Should probably look at cutting a new release soon!

@haderp
Copy link
Author

haderp commented Feb 28, 2023

Awesome, I look forward to it. After trying all of the opensource/free solutions available yours is definitely the best for monitoring a small home lan without a ton of overhead and features that aren't geared towards a small network. Thanks for your work and time.

@jamesoff
Copy link
Owner

jamesoff commented Mar 3, 2023

Thanks for the feedback, really appreciate it <3

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

No branches or pull requests

2 participants