ArcGIS Package urllib3 library issue

JAVIER VARA 20 Reputation points
2023-05-05T13:39:35.02+00:00

I'm recently experiencing issues with the ARCGIS package installed with my azure function. The urllib3 library was updated to version 2.0.2 in May 3 and, since then, the code is unable to log into arcgis due to the following error:

init() got an unexpected keyword argument 'method_whitelist'

I'm not sure if there is a way to overwrite the library to the last working version (1.26.15), since it is actually installed with the arcgis package itself.

Any guidance will be highly appreciated.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,679 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,016 Reputation points
    2023-05-08T10:30:47.48+00:00

    @JAVIER VARA Thanks for reaching out. It looks like you are experiencing issues with the ArcGIS package installed in your Azure Function due to a recent update to the urllib3 library which is the last version that may not be compatible with the arcgis package.

    One possible solution is to pin the version of urllib3 to the last working version (1.26.5) in your Azure Function. You can do this by adding the following line to your requirements.txt file:

    urllib3==1.26.5
    

    This will ensure that the version of urllib3 used in your Azure Function is the last working version.

    Feel free to get back to me if you need any assistance.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful