https://prefect.io logo
Title
k

Kathryn Klarich

04/26/2022, 5:14 PM
Hi all, I’m not sure where the best place to post this is (here versus discourse), but I am running into an error when trying to register a prefect flow:
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
- it seems to be happening during this step
RUN pip install pip --upgrade
- has anyone come across this before and know how to fix it? I was able to successfully register this flow a few days ago and haven’t changed much in the requirements since then.
:discourse: 1
k

Kevin Kho

04/26/2022, 5:16 PM
I think uninstall prefect and re-install it and see if that helps?
What is your cryptography version?
k

Kathryn Klarich

04/26/2022, 5:23 PM
hmm do i need to reinstall it in the image or in my conda environment that I am using to register the flow?
k

Kevin Kho

04/26/2022, 5:25 PM
If this is a registration issue, I think just on the registration environment. I think something weird happened with the package versions there
k

Kathryn Klarich

04/26/2022, 5:26 PM
in the image my flow is stored in it is 37.0.0, in my conda env it is 36.0.0
k

Kevin Kho

04/26/2022, 5:29 PM
I think that mismatch might be an issue? I don’t know for sure. It’s a really weird error 😅. For reference though, my stuff is working with 36.0.2 and Prefect 1.2
k

Kathryn Klarich

04/26/2022, 5:29 PM
ok we are using 0.15.5
(prefect version)
i’ll try upgrading cryptography on my local env to 0.37.0
k

Kevin Kho

04/26/2022, 5:30 PM
Ah ok. It might not even be cryptography
Or well, you could re-build that conda environment if it’s not too hard.
k

Kathryn Klarich

04/26/2022, 5:30 PM
yeah i can rebuild the conda env
still getting the same error
maybe i should try rebuilding the base image?
and pinning cryptography to 36.0.2?
k

Kevin Kho

04/26/2022, 5:52 PM
Maybe that might help. It’s not just cryptography tho one sec let me show you what i was reading
Oh lol
cryptography
jumped from version 3.4.8 to 35.0.0. No wonder the versions felt so far
k

Kathryn Klarich

04/26/2022, 5:58 PM
ohh haha weird. will check it out, thanks!
Ok I finally got it to work by pinning to
cryptography==2.8
in the flow’s image (that was the version of cryptography that other flows container’s were using). I’m not sure if this has something to do that we are using prefect version
0.15.5
k

Kevin Kho

04/26/2022, 7:38 PM
Oh maybe. Glad you found a working version though
k

Kathryn Klarich

04/26/2022, 7:43 PM
me too 😅
thanks for your help!
k

Kathryn Klarich

04/27/2022, 9:31 PM
Thanks @Anna Geller! For future reference, do you guys prefer we post these types of questions here or on discourse? Also as an updated, I did try a build where I upgraded the prefect version to
1.2
and I still got the same error, so I don’t think it has anything to do with the prefect version. I’ll continue pinning to cryptography version 2.8 for now.
a

Anna Geller

04/27/2022, 9:45 PM
it's totally up to you, I personally prefer Discourse because it supports syntax highlighting, quoting and is google searchable, but Slack is better for ad hoc quick questions - we support both equally Given we are already talking about this on Discourse, let's continue there about this issue, but overall both are fine
k

Kathryn Klarich

04/28/2022, 3:10 PM
Good to know, thanks Anna!
👍 1