Skip to content

AttributeError: 'SpoolModel' object has no attribute 'weight' #148

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

Closed
Julaho opened this issue May 25, 2021 · 3 comments
Closed

AttributeError: 'SpoolModel' object has no attribute 'weight' #148

Julaho opened this issue May 25, 2021 · 3 comments
Labels
type: bug Something isn't working

Comments

@Julaho
Copy link

Julaho commented May 25, 2021

Even with both plugins, PrintJobHistory and SpoolManager, updated to the latest versions my printjobs are not added to the history. The log shows the folloing error:

2021-05-25 10:50:24,559 - octoprint.plugin - ERROR - Error while calling plugin PrintJobHistory
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/plugin/__init__.py", line 271, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/__init__.py", line 1941, in wrapper
    return f(*args, **kwargs)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintJobHistory/__init__.py", line 850, in on_event
    self._printJobFinished("success", payload)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintJobHistory/__init__.py", line 649, in _printJobFinished
    self._createAndAssignFilamentModel(self._currentPrintJobModel, payload)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintJobHistory/__init__.py", line 276, in _createAndAssignFilamentModel
    selectedSpoolDataDict = self._getSelectedSpools()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_PrintJobHistory/__init__.py", line 432, in _getSelectedSpools
    selectedSpoolInformations = self._spoolManagerPluginImplementation.api_getSelectedSpoolInformations()
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_SpoolManager/__init__.py", line 480, in api_getSelectedSpoolInformations
    "weight": spoolModel.weight
AttributeError: 'SpoolModel' object has no attribute 'weight'
@OllisGit OllisGit added status: inNextRelease Will be implemented/fixed in next release type: bug Something isn't working labels May 25, 2021
OllisGit added a commit that referenced this issue May 25, 2021
- E #119, #148 updated the needed SpoolManager Version to 1.4.2
@OllisGit
Copy link
Owner

Hi @Julaho,

please update to SpoolManager V1.4.2, this should solve the issue.
Please test and give feedback.

Thx, in advance
Olli

@OllisGit OllisGit added status: waitingForTestFeedback and removed status: inNextRelease Will be implemented/fixed in next release labels May 25, 2021
@Julaho
Copy link
Author

Julaho commented May 25, 2021

Hi @OllisGit,

I just updated to V1.4.2 and made a quick test-print.
The Plugin ist working again - thanks for your great support! Enjoy your coffee. ;-)

Best, Julian

@OllisGit
Copy link
Owner

Hi @Julaho,

thanks for testing and the coffee!!!

BR
Olli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants