Getting Exception: TypeError: 'function' object is not subscriptable

GURUVANANTHAM Guru-Mohan 1 Reputation point
2021-10-28T11:43:48.33+00:00

Dear Team,

I'm trying to execute a custom python script inside my Azure Function App and getting function object is not subscriptable error in exceptions.

I've verified that there is no function name having the same name as object. It is really too difficult to figure out the error.

Could any one suggest on this?

144528-exception.png

Regards,
Guru Mohan G

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,986 Reputation points Moderator
    2021-11-01T03:10:00.5+00:00

    @GURUVANANTHAM Guru-Mohan Requirements.txt file is used you want specific packages to be installed on your azure function. The packages name that you mentioned in Requirements.txt is installed using the pip command in your function app.

    As per your file, I can see only requests and azure.storage.blob package available. As the other module name that you have specified couldn't install/found using pip therefore in the exception traces you can see there is an issue in installing those packages.

    wallix_module_py  
    wallix_register_py  
    get_vault_secret_new_py  
    requests  
    azure.storage.blob  
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.