Closed pdvorak57 closed 7 years ago
what slicer did you use for that gcode file?
cura 2.3.1 on Mac. It fails for all the prints I am doing, do you need to see the gcode?
do you need to see the gcode?
yes, please
I have the same problem:
2017-03-04 07:41:29,925 - octoprint.plugin - ERROR - Error while calling plugin printhistory Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.1-py2.7.egg/octoprint/plugin/init.py", line 229, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/init.py", line 146, in on_event return eventHandler.eventHandler(self, event, payload) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/eventHandler.py", line 46, in eventHandler parameters = gcode_parser.parse() File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/parser.py", line 25, in parse parameters = self.parser_factory.parse(self.file) AttributeError: 'NoneType' object has no attribute 'parse'
BTW - I have this problem when using Cura 15.02.1, when I use Simplyfi3d, it's ok.
but before I installed Octoprint 1.3.1 it used to work on Cura as well.
Parser searches for Cura_SteamEngine
string on the first 3 lines.
Increasing this constant to 10 should help.
https://github.com/imrahil/OctoPrint-PrintHistory/blob/master/octoprint_printhistory/parser.py#L49
p.s. i will check
I installed printhistory plugin on octoprint 1.3.1, and I don't have any print history information, and I am getting the following error in the logs:
2017-03-03 00:26:21,166 - octoprint.plugins.detailedprogress - INFO - Printing stopped. Detailed progress stopped. 2017-03-03 00:26:21,222 - octoprint.plugin - ERROR - Error while calling plugin printhistory Traceback (most recent call last): File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.3.1-py2.7.egg/octoprint/plugin/init.py", line 229, in call_plugin result = getattr(plugin, method)(*args, **kwargs) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/init.py", line 146, in on_event return eventHandler.eventHandler(self, event, payload) File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/eventHandler.py", line 46, in eventHandler parameters = gcode_parser.parse() File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_printhistory/parser.py", line 25, in parse parameters = self.parser_factory.parse(self.file) AttributeError: 'NoneType' object has no attribute 'parse'