Hi Joe,
We've finally tracked down the cause of the unicode error and have a fix. The error is caused by C++ code in the SSC module for the HCPV module that uses a single quote in one of the output variable labels. The solution for the Python wrapper is to modify the definition of
in
sscapi.py.
Old:
def info_label( self, p_inf ):
self.pdll.ssc_info_label.restype = c_char_p
return self.pdll.ssc_info_label( c_void_p(p_inf) )
New:
def info_label( self, p_inf ):<br />
self.pdll.ssc_info_label.restype = c_char_p<br />
t = self.pdll.ssc_info_label( c_void_p(p_inf) )<br />
return t.decode('utf-8', 'ignore')
Here is a link to a version of
sscapi.py with the correction:
sscapy-3-4-2.py.txt (
PY 104 KB
). You'll have to remove the
.txt extension after you download the file.
We will include this file in the next version of the SDK
Best regards
Paul.