hi community, I'm running into a very simple but c...
# ask-community
s
hi community, I'm running into a very simple but confusing error: • I create a new environment with
conda create -n my-env python=3.10
• I activate the environment and only instal prefect with
pip install -U prefect
• Finally I try to set the prefect server to the right IP using
prefect confit set PREFECT_API_URL=<http://XX.XX.XX.XXX:4200>
The following error pops up:
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
. Has anyone seen this error before and can provide guidance?
also tried quoting the IP address but it didn't work: "`PREFECT_API_URL=http://XX.XX.XX.XXX:4200"`
t
What is the full traceback that raised the error? I have not seen this error, and it is not clear if it is actually being raised by prefect. It might be some conda magic that is being mucked up.
s
hey @Tim Galvin thanks for chiming in. This is the complete traceback:
Copy code
Original exception was:
Traceback (most recent call last):
  File "/home/gtfs-rt-conflation/.local/bin/prefect", line 5, in <module>
    from prefect.cli import app
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/prefect/__init__.py", line 25, in <module>
    from prefect.states import State
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/prefect/states.py", line 28, in <module>
    from prefect.results import BaseResult, R, ResultFactory
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/prefect/results.py", line 9, in <module>
    from prefect.blocks.core import Block
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/prefect/blocks/__init__.py", line 3, in <module>
    import prefect.blocks.notifications
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/prefect/blocks/notifications.py", line 4, in <module>
    import apprise
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/__init__.py", line 51, in <module>
    from .plugins.NotifyBase import NotifyBase
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/plugins/__init__.py", line 34, in <module>
    from . import NotifyEmail as NotifyEmailBase
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/plugins/NotifyEmail.py", line 40, in <module>
    from .NotifyBase import NotifyBase
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/plugins/NotifyBase.py", line 36, in <module>
    from ..AppriseAttachment import AppriseAttachment
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/AppriseAttachment.py", line 26, in <module>
    from . import attachment
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/attachment/__init__.py", line 116, in <module>
    __load_matrix()
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/attachment/__init__.py", line 56, in __load_matrix
    module = __import__(
  File "/home/gtfs-rt-conflation/.local/lib/python3.8/site-packages/apprise/attachment/AttachHTTP.py", line 28, in <module>
    import requests
  File "/usr/lib/python3/dist-packages/requests/__init__.py", line 95, in <module>
    from urllib3.contrib import pyopenssl
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1553, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1573, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
t
My pleasure 🙂 This to me does not look like a prefect error, and instead is probably related to SSL and the interplay with the conda environment and your host system
c
agreed, you probably need to upgrade pip, openssl, and conda
s
Thanks, I'll give it a shot at upgrading conda
I already updated pip and openssl and the error persists
thanks @Christopher Boyd, I had followed the advice on that thread but the error persists with the latest versions of pip, conda and pyopenssl. Not really sure of what can be the problem here.