Hi all, I’m not sure where the best place to post ...
# ask-community
k
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
I think uninstall prefect and re-install it and see if that helps?
What is your cryptography version?
k
hmm do i need to reinstall it in the image or in my conda environment that I am using to register the flow?
k
If this is a registration issue, I think just on the registration environment. I think something weird happened with the package versions there
k
in the image my flow is stored in it is 37.0.0, in my conda env it is 36.0.0
k
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
ok we are using 0.15.5
(prefect version)
i’ll try upgrading cryptography on my local env to 0.37.0
k
Ah ok. It might not even be cryptography
Or well, you could re-build that conda environment if it’s not too hard.
k
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
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
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
Oh maybe. Glad you found a working version though
k
me too 😅
thanks for your help!
k
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
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
Good to know, thanks Anna!
👍 1