Forum Discussion
Andreas_
6 years agoRegular Visitor
Can't draw Python visual using Basemap shadedrelief
Hi, I am having some trouble drawing a simple map in Power BI using Python, now the map works fine outside of Power BI, however it throws an error saying it 'can't display the visual', and the error...
- 6 years ago
As mentioned in my post edit, I had the following in my stacktrace (that I didn't check properly):
File "PythonScriptWrapper.PY", line 18, in <module> from PIL import Image ModuleNotFoundError: No module named 'PIL'Since it worked outside of PowerBI I suspect the issue was related to me using Anaconda, as previously I had to re-install all other dependencies with pip for them to be recognized, seems I simply missed one!
Andreas_
6 years agoRegular Visitor
As mentioned in my post edit, I had the following in my stacktrace (that I didn't check properly):
File "PythonScriptWrapper.PY", line 18, in <module>
from PIL import Image
ModuleNotFoundError: No module named 'PIL'Since it worked outside of PowerBI I suspect the issue was related to me using Anaconda, as previously I had to re-install all other dependencies with pip for them to be recognized, seems I simply missed one!