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

[1.3.11rc1] Attribute error when retrieving temperatures due to uninitialized _chamberTemp #3089

Closed
foosel opened this issue Mar 28, 2019 · 1 comment

Comments

Projects
None yet
1 participant
@foosel
Copy link
Owner

commented Mar 28, 2019

Problem

AttributeError: 'Printer' object has no attribute '_chamberTemp'
  File "flask/app.py", line 1817, in wsgi_app
    response = self.full_dispatch_request()
  File "flask/app.py", line 1477, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "flask/app.py", line 1381, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "octoprint/server/api/printer.py", line 42, in printerState
    result.update({"temperature": _get_temperature_data(processor)})
  File "octoprint/server/api/printer.py", line 460, in _get_temperature_data
    tempData = printer.get_current_temperatures()
  File "octoprint/printer/standard.py", line 623, in get_current_temperatures
    if self._chamberTemp is not None:

(found in Sentry, reproduction steps unclear)

Solution

Make sure to define _chamberTemp and _targetChamberTemp in __init__.py

@foosel foosel self-assigned this Mar 28, 2019

foosel added a commit that referenced this issue Mar 28, 2019

@foosel foosel added this to the 1.3.11 milestone Mar 29, 2019

@foosel

This comment has been minimized.

Copy link
Owner Author

commented Apr 4, 2019

1.3.11rc2 was just released

@foosel foosel closed this Apr 4, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.