I'm developing a python function for AWS lambda.
My function works locally, with:
python-lambda-local -f handler app.py event.json -t 30
However, when I deploy it in AWS Lambda, (with a zip file with all dependencies), it seems the objectify lib is not loaded. Error message:
Unable to import module 'app': cannot import name 'objectify'
This is a snippet of my function:
# -*- coding: utf-8 -*-
import sys
import logging
import env_config
import pymysql
import traceback
import json
import requests
#from lxml import objectify
import lxml.objectify
import lxml.etree