You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you try:
Installing after updating to python3. Gcode sent to printer stuck in analysis phase and unable to print.
Manual analysis - which also failed and left an error log.
What happenned:
Error logged to ErrorLog TypeError: '<' not supported between instances of 'NoneType' and 'int'
In python 3 you can not compare a NoneType to an int. this is being done on line 188 of /octoprint_PrintTimeGenius/__init__.py.
Line in question - here
What did you expect to happen:
Plugin to not crash due to logic errors introduced in language upgrade.
To be able to print gcode sent to printer - and not have this plugin prevent that
Sample of Error Log:
2020-09-15 21:41:59,470 - octoprint - ERROR - Exception on /plugin/PrintTimeGenius/analyze/local/[local-directory]/[file_name].gcode [GET]
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 523, in analyze_file
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/__init__.py", line 322, in analyse
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 98, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 198, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 207, in _do_abort
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 188, in _allow_analysis
2020-09-15 21:42:30,079 - octoprint - ERROR - Exception on /plugin/PrintTimeGenius/analyze/local/[local-directory]/[file_name].gcode [GET]
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 523, in analyze_file
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/__init__.py", line 322, in analyse
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 98, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 198, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 207, in _do_abort
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 188, in _allow_analysis
2020-09-15 21:42:33,891 - octoprint - ERROR - Exception on /plugin/PrintTimeGenius/analyze/local/[local-directory]/[file_name].gcode [GET]
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 523, in analyze_file
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/__init__.py", line 322, in analyse
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 98, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 198, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 207, in _do_abort
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 188, in _allow_analysis
2020-09-15 21:42:43,142 - octoprint - ERROR - Exception on /plugin/PrintTimeGenius/analyze/local/[local-directory]/[file_name].gcode [GET]
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 523, in analyze_file
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/__init__.py", line 322, in analyse
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 98, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 198, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 207, in _do_abort
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 188, in _allow_analysis
2020-09-15 21:43:58,997 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json
2020-09-15 21:44:50,303 - octoprint - ERROR - Exception on /plugin/PrintTimeGenius/analyze/local/[local-directory]/[file_name].gcode [GET]
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 523, in analyze_file
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/__init__.py", line 322, in analyse
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 98, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/filemanager/analysis.py", line 198, in dequeue
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 207, in _do_abort
File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintTimeGenius/__init__.py", line 188, in _allow_analysis
2020-09-15 21:45:08,764 - octoprint.server.heartbeat - INFO - Server heartbeat <3
The text was updated successfully, but these errors were encountered:
OctoPrint Version:
octopi_version:
python:
PrintTimeGenius Version:
What did you try:
Installing after updating to python3. Gcode sent to printer stuck in analysis phase and unable to print.
Manual analysis - which also failed and left an error log.
What happenned:
Error logged to ErrorLog
TypeError: '<' not supported between instances of 'NoneType' and 'int'
In python 3 you can not compare a NoneType to an int. this is being done on line 188 of
/octoprint_PrintTimeGenius/__init__.py
.Line in question - here
What did you expect to happen:
Plugin to not crash due to logic errors introduced in language upgrade.
To be able to print gcode sent to printer - and not have this plugin prevent that
Sample of Error Log:
The text was updated successfully, but these errors were encountered: