Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
nontawat
New Member

URLopen error

Hi,

 

I run python visual on power bi desktop, it works.

 

 

import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.image as mpimg

img = 'https://storage.googleapis.com/xxxxxxx/xxxxxx.svg.png'
img = mpimg.imread(img)
imgplot = plt.imshow(img)
plt.axis('off')
plt.tight_layout()
plt.show()

 

 

But running on power bi service, I get this error.

 

MicrosoftTeams-image.png

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @nontawat 

Could you please tell me whether your problem has been solved?

If the problem is still not resolved, it is recommended to open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @nontawat 

Could you please tell me whether your problem has been solved?

If the problem is still not resolved, it is recommended to open a support ticket to let engineers look into the issue on your side.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-easonf-msft
Community Support
Community Support

Hi,  @nontawat 

Please check this similar thread.

Error-when-running-Python-Visualisation-Script-in-Power-BI 

 

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.