from boxsdk import JWTAuth, Client
auth = JWTAuth.from_settings_file(settings_file_sys_path=box_config_json_path)
client = Client(auth)
print(client.user().get())
return client
Error in Lambda: 'NoneType' object has no attribute 'from_settings_file'
Tried installing boxsdk[jwt] instead of just boxsdk.
Added boxsdk[jwt] in requirement.txt or pip install "boxsdk[jwt]" (Because of '[' used quotes)
Use
Instead of
This resolved issue in lambda.
only resolved the issue in my local and not in my lambda.