Workaround: Azure IoT Python SDK Error: curl_easy_perform() failed: Out of memory
1 min read
A bunch of people have reported the following issue with the Azure IoT Python SDK:
azure-iot-sdk-python/c/c-utility/adapters/httpapi_curl.c Func:HTTPAPI_ExecuteRequest Line:552 curl_easy_perform() failed: Out of memory
```sql
Here’s a workaround:
> Please do not go to production with this workaround as it has not been fully tested. The Azure IoT team will release a permanent fix soon.
## Linux
From the [Python Dev Box Setup Page](https://github.com/Azure/azure-iot-sdk-python/blob/master/doc/python-devbox-setup.md#compile-the-python-modules-1) you’ll get to the “Compile the Python Modules” step. Right after you run `./setup.sh`, you’ll need to remove `openssl` and replace it with `gnutls`
```bash
cd build_all/linux
./setup.sh
sudo apt remove libcurl4-openssl-devsudo apt install libcurl4-gnutls-dev
./build.shYou will then be able to run any of the samples by following the instructions here.
Mac
We don’t have a workaround at this time. A permanent fix should be rolled out soon. Please let me know if you find a workaround to swap out openssl for gnutls.
Tracking Issues
Share: