Hi @paras, Siddhartha,
I am also having similar issue. Can you please guide how did you include gpg binaries? Is it from /usr/bin/gpg? I am following below procedure to create python venv in Amazon linux 2 to get it resolved but i am trying to understand how can i include gpg binaries in this zip? Please respond. I have been trying to resolve this from last few weeks and got this thread as hope to resolve my issue
python3.9 -m venv my_venv
./my_venv/bin/pip3.9 install python-gnupg
cp -r ./my_venv/lib/python3.9/site-packages/
cp /usr/bin/gpp ./my_venv/lib/python3.9/site-packages/
python
zip -r lambda_function.zip python
and lamdba.py in code
import gnupg
def lambda_handler(event, context):
gpg = gnupg.GPG(gnupghome="/tmp", gpgbinary='./gpg')
gpg.encoding = 'utf-8'
Thanks
Hemant