Custom commands are not working with python3. In console error is visible:
2020-03-12 21:18:59,164 - octoprint.plugins.tracking - INFO - Sent tracking event printer_connected, payload: {'firmware_name': 'Marlin bugfix-2.0.x (Github)', 'printer_port': '/dev/ttyACM0', 'printer_baudrate': 0} Exception in thread Thread-25: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/home/cosik/projekty/octoprint/octoenv/lib/python3.8/site-packages/octoprint/util/__init__.py", line 1372, in run self.function(*self.args, **self.kwargs) File "/home/cosik/projekty/octoprint/octoenv/lib/python3.8/site-packages/octoprint_navbartemp/__init__.py", line 60, in updateSoCTemp temp = self.sbc.checkSoCTemp() AttributeError: 'NoneType' object has no attribute 'checkSoCTemp' 2020-03-12 21:20:02,082 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Offline" 2020-03-12 21:20:03,954 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial port" 2020-03-12 21:20:03,955 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
While under py2 this is not visible.
Custom commands are not working with python3. In console error is visible:
2020-03-12 21:18:59,164 - octoprint.plugins.tracking - INFO - Sent tracking event printer_connected, payload: {'firmware_name': 'Marlin bugfix-2.0.x (Github)', 'printer_port': '/dev/ttyACM0', 'printer_baudrate': 0} Exception in thread Thread-25: Traceback (most recent call last): File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/home/cosik/projekty/octoprint/octoenv/lib/python3.8/site-packages/octoprint/util/__init__.py", line 1372, in run self.function(*self.args, **self.kwargs) File "/home/cosik/projekty/octoprint/octoenv/lib/python3.8/site-packages/octoprint_navbartemp/__init__.py", line 60, in updateSoCTemp temp = self.sbc.checkSoCTemp() AttributeError: 'NoneType' object has no attribute 'checkSoCTemp' 2020-03-12 21:20:02,082 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Offline" 2020-03-12 21:20:03,954 - octoprint.util.comm - INFO - Changing monitoring state from "Offline" to "Opening serial port" 2020-03-12 21:20:03,955 - octoprint.util.comm - INFO - Changing monitoring state from "Opening serial port" to "Connecting"
While under py2 this is not visible.