Quantcast
Channel: Active questions tagged whois - Stack Overflow
Viewing all articles
Browse latest Browse all 46

Error while importing python-whois on AWS Lambda

$
0
0

I'm trying to run a script that uses python-whois and I'm having an error. This was previously imported locally using "pip3 install python-whois -t ." and then uploaded to the zip file into AWS Lambda. I'm using Python v3.12

import jsonimport whoisdef lambda_handler(event, context):        return {'statusCode': 200,'body': event    }

The error message:

[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'imp'Traceback (most recent call last):

Viewing all articles
Browse latest Browse all 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>