Code: Select all
Traceback (most recent call last):
File "C:\Users\JPS\AppData\Roaming\FreeCAD\Mod\CfdOF\_TaskPanelCfdMesh.py", line 130, in reject
self.mesh_process.terminate()
File "C:\Users\JPS\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdConsoleProcess.py", line 74, in terminate
self.process.write("terminate\n")
<class 'TypeError'>: 'PySide2.QtCore.QIODevice.write' called with wrong argument types:
PySide2.QtCore.QIODevice.write(str)
Supported signatures:
PySide2.QtCore.QIODevice.write(PySide2.QtCore.QByteArray)
The change I made to my local copy of CfdConsoleProcess at line 74 was from:
Code: Select all
self.process.write("terminate\n")
Code: Select all
try:
self.process.write("terminate\n")
except:
self.process.write(str.encode("terminate\n"))
I'm open to those with far more Python knowledge as to a more clean solution.
OS: Windows 7 SP 1 (6.1)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16935 (Git)
Build type: Release
Branch: master
Hash: aa9cd0d91c1db88bf2999a08987a31894e67f7f1
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)