aws / aws-lambda-python-runtime-interface-client

Apache License 2.0
258 stars 73 forks source link

simplejson==3.18.1 not supported #93

Closed marcin2x4 closed 5 months ago

marcin2x4 commented 1 year ago

When installing office365 package in lambda's `/tmp/ dir:

os.system('/var/lang/bin/pip3.9 install office365 -t /tmp/')
import office365

def handler(event, context): 
    print(sys.path)
    print("hi!")
    print(office365.__version__)

one of the dependencies threw below error:

awslambdaric 2.0.4 requires simplejson==3.17.2, but you have simplejson 3.18.1 which is incompatible.
Module office365 not found
kpark-hrp commented 6 months ago

@alex-pewpew @briensea Can we please upgrade out of this ancient simplejson version? Or at least loosen the pin.

Technically, the simplejson==3.17.2 only supports up to Python 3.8 wheels

kpark-hrp commented 6 months ago

Should be at least minimum simplejson>=3.18.1

briensea commented 5 months ago

Fixed in 2.0.11.