I tried to use Python3 PCANBasic Example and find it freeze at Initialize when CAN-FD is selected.
I do a bit research and find that problem is in initialization Bitrate string.
In python3 all string are unicode, but to c_dll need pass bytestring, so line:
Code: Select all
result = self.m_objPCANBasic.InitializeFD(self.m_PcanHandle, self.m_BitrateTXT.get())
Code: Select all
result = self.m_objPCANBasic.InitializeFD(self.m_PcanHandle, self.m_BitrateTXT.get().encode())
Please update example.