0

I've built a Layer for Lambdas using instructions here. The package I'm trying to add is: selenium-wire

When I test my Lambda I get this:

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

Any Ideas?

I've tried including the package contents of selenium-wire within the folder which imports seleniumwire, but gives me an error pointing to invalid ELF which is what led me to use the instructions linked above.

Val Lapidus
  • 143
  • 1
  • 5

1 Answers1

0

You can use:

[...]$ git clone https://github.com/bluegridio/build-lambda-layer.git
[...]$ cd build-lambda-layer
[...]$ ./build-lambda-layer.sh selenium-wire

Check:

[...]$ unzip -l selenium-wire.zip python/lib/python3.7/site-packages/seleniumwire/

Archive:  selenium-wire.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2023-01-31 08:18   python/lib/python3.7/site-packages/seleniumwire/
---------                     -------
        0                     1 file
Corralien
  • 109,409
  • 8
  • 28
  • 52