I am using a library called `py_openshowvar` to communicate with a Kuka robot arm from grasshopper. 

Everything works fine if I run the program from a command line python shell. However, when I run the same thing from GhPython, I get the following:

![<code>TypeErrorException</code>](https://i.stack.imgur.com/CMv5x.png)

Not sure why I get the exceptions with GhPython but not when I run it outside the GH environment. The program still connects to the server and retrieves/sends the info I need, but I want to make sure and address this exception. 

Thanks!