Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

traceback after done printing from sd. #731

Closed
Duality4Y opened this issue Apr 2, 2016 · 1 comment
Closed

traceback after done printing from sd. #731

Duality4Y opened this issue Apr 2, 2016 · 1 comment

Comments

@Duality4Y
Copy link

I see a traceback after it is done printing from sd card:

SD printing byte 64612/68114
Done printing file
Print ended at: 18:02:15 and took 0:12:02
[ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/printrun/printcore.py", line 242, in _readline
    try: self.recvcb(line)
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1724, in recvcb
    listener(l)
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1753, in waitforsdresponse
    self.endcb()
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1515, in endcb
    pronsole.pronsole.endcb(self)
  File "/usr/lib/python2.7/site-packages/printrun/pronsole.py", line 1190, in endcb
    new_total = self.settings.total_filament_used + self.fgcode.filament_length
AttributeError: 'NoneType' object has no attribute 'filament_length'

echo:0 hours 11 minutes
echo:enqueing "M84 X Y Z E"

it doesn't crash pronterface, but i thought i should tell about it.

@kliment
Copy link
Owner

kliment commented Apr 2, 2016

Thanks for reporting this, it's trying to update the total filament
used, but doesn't know what was printed and thus cannot calculate the
filament used. I'll add a check to skip the update if no gcode is loaded.

On 04/02/2016 06:06 PM, Robert wrote:

I see a traceback after it is done printing from sd card:

SD printing byte 64612/68114
Done printing file
Print ended at: 18:02:15 and took 0:12:02
[ERROR] Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/printrun/printcore.py", line 242, in _readline
    try: self.recvcb(line)
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1724, in recvcb
    listener(l)
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1753, in waitforsdresponse
    self.endcb()
  File "/usr/lib/python2.7/site-packages/printrun/pronterface.py", line 1515, in endcb
    pronsole.pronsole.endcb(self)
  File "/usr/lib/python2.7/site-packages/printrun/pronsole.py", line 1190, in endcb
    new_total = self.settings.total_filament_used + self.fgcode.filament_length
AttributeError: 'NoneType' object has no attribute 'filament_length'

echo:0 hours 11 minutes
echo:enqueing "M84 X Y Z E"

it doesn't crash pronterface, but i thought i should tell about it.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#731

@kliment kliment closed this as completed in 9615e7b Apr 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants