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

unsubscribe issues python 3? #101

Closed
jneilliii opened this issue May 7, 2021 · 4 comments · Fixed by #102
Closed

unsubscribe issues python 3? #101

jneilliii opened this issue May 7, 2021 · 4 comments · Fixed by #102

Comments

@jneilliii
Copy link
Collaborator

What were you doing?

Discussion on the issue in forum here

Seems that unsubscribe may have an issue in Python 3

Quoting @cp2004...

In Python 3, filter() returns an iterable object whereas in Python 2 it returned a list. Likely where the error comes from.

What did you expect to happen?

no errors when unsubscribing

What happened instead?

errors were thrown

Version of OctoPrint

unsure, assuming 1.6.0.

Version of the MQTT plugin

0.8.9

Used MQTT broker and its version

Link to octoprint.log

will work on reproducing issue and provide logs

Link to contents of Javascript console in the browser

n/a

Screenshot(s)/video(s) showing the problem

n/a

@GitIssueBot
Copy link

This issue has been mentioned on OctoPrint Community Forum. There might be relevant details there:

https://community.octoprint.org/t/new-plugin-mqtt-for-psucontrol/33886/10

@jneilliii
Copy link
Collaborator Author

Awaiting confirmation above commit resolves the issue. If it does I will bump version, merge, and release.

@oerkel47
Copy link

oerkel47 commented May 7, 2021

This did indeed fix it for my plugin. Do you still have a need for logs?

@jneilliii
Copy link
Collaborator Author

no, I don't think so @oerkel47 thanks for testing/confirming.

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

Successfully merging a pull request may close this issue.

3 participants