简体   繁体   English

在Power BI python脚本上请求问题图像

[英]request problems image on Power BI python script

I am trying to do a heatmap over a map into a python script. 我正在尝试将地图上的热图转换成python脚本。 The methodology is loading an image with a public URL of a webserver that contains this map. 该方法正在使用包含此映射的Web服务器的公共URL加载图像。

In Power BI Desktop works well but when I publish this report, the request to load the map in PWBI is not working. 在Power BI Desktop中运行良好,但是当我发布此报告时,在PWBI中加载地图的请求不起作用。 I understand that power bi servers are not allowed to make requests to public URLs. 我了解禁止Power Bi服务器向公共URL发出请求。 The message error that returns python script is: 返回python脚本的消息错误是:

socket.gaierror: [Errno 11001] getaddrinfo failed socket.gaierror:[Errno 11001] getaddrinfo失败

The URL is public. 该网址是公开的。 Therefore, I do not understand why this image is not load. 因此,我不明白为什么不加载该图像。 mark: the webserver is an azure service (blob container). 标记:Web服务器是一种Azure服务(blob容器)。

The library to make requests is matplotlib that internally contains urllib. 发出请求的库是内部包含urllib的matplotlib。 Can you help me? 你能帮助我吗?

There are another way to load images in python scripts without Public URLs? 没有公共URL,还有另一种方法可以在python脚本中加载图像吗?

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. 如果图像数量很少,则可以将它们嵌入数据集或直接嵌入转换为Base64的Python源代码中。 See, eg Storing Images in a PowerBI/Analysis Services Data Models . 参见,例如,在PowerBI / Analysis Services数据模型中存储图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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