Skip to main content

No module named 'seaborn'

Hello all,
I created a script in python which is supposed to generate a Bar chart using matplotlib. The module I am using for visualization is seaborn. While the script works perfectly when i invoke it from the editor and from command prompt, it gives the error 'No module named seaborn' whi i invoke it inside a macro. The module is however installed and working fine even when used in other scripts. I have spent three days trying to figure out whatthe problem could be to no avail.
 
Anyone who experienced this problem and was able to fix it?
I am using Python 3.6.8 64 bit and Version 11.3 of Idea, also 64 bit
 
 

Humphrey Sat, 01/16/2021 - 00:36

No line numbers are indicated where errors are noted. I shall have to shelve this for now. A Caseware partner shall give training on Python in the next two weeks and I shall raise the question to the trainer. Shall get back to you once i learn how to fix it.

Humphrey Mon, 01/18/2021 - 00:15

Hello Brian,
KPMG is the local Caseware Partner here. The training will be given either by someone from KPMG or they will hire somebody to train on their behalf. 
Thank you for your idea of putting message boxes, I shall definitely try it.
 

Brian Element Mon, 01/18/2021 - 07:14

In reply to by Humphrey

Hi Humphrey, I would be interested in what they give as training.  Can you let me know how the training went.

Thanks

Humphrey Tue, 01/19/2021 - 01:57

Hello klmi,
I applied your workaround and it worked. I however cannot have a fancy plot as the features of the version of matloplib are very limiting.
Thank you so much, I really appreciate.