简体   繁体   中英

request problems image on Power BI python script

I am trying to do a heatmap over a map into a python script. The methodology is loading an image with a public URL of a webserver that contains this map.

In Power BI Desktop works well but when I publish this report, the request to load the map in PWBI is not working. I understand that power bi servers are not allowed to make requests to public URLs. The message error that returns python script is:

socket.gaierror: [Errno 11001] getaddrinfo failed

The URL is public. Therefore, I do not understand why this image is not load. mark: the webserver is an azure service (blob container).

The library to make requests is matplotlib that internally contains urllib. Can you help me?

There are another way to load images in python scripts without Public URLs?

If you have a small number of images you can embed them in your Dataset or directly in your Python source code, converted to Base64. See, eg Storing Images in a PowerBI/Analysis Services Data Models .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM