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

My OctoPrint update fails: "AssertionError", "ImportError: NullHandler", "UnicodeEncodeError: 'latin-1'" and other reasons #4256

Closed
foosel opened this issue Oct 12, 2021 · 2 comments
Labels
not octoprint Issue is not on OctoPrint's end wont fix This will not be worked on

Comments

@foosel
Copy link
Member

foosel commented Oct 12, 2021

On every new OctoPrint release we see some people run into the same issues with outdated or broken environments all over again, which are covered in the FAQ including fixes. If you encounter a problem during update, please check this collection of the most common issues encountered over the past couple of release cycles first, and test if the included fixes solve your problem:

  1. My OctoPrint update fails with "ImportError: cannot import name NullHandler"
  2. Trying to update OctoPrint on OctoPi 0.16 gives me an "AssertionError" about "assert have_directory_for_build", how do I solve this?
  3. I got some error about "no suitable distribution" during update and now my server won't start
  4. OctoPrint tells me it can't run an update due to my Python environment being outdated, what do I do now?
  5. I cannot install/uninstall/update plugins, update OctoPrint, or restore a backup, I get a "UnicodeEncodeError: 'latin-1' codec can't encode characters"
  6. ImportError: cannot import name 'ParamSpec' from 'typing_extensions' after upgrade to 1.8.3+

We also see a lot of cases of file system corruption that usually only become visible during updates. Always shut your Pi down safely before cutting power to it, do regular backups and also swap your SD once in a while (they do wear out). In case of file system corruption, you might be able to get things going enough to run a backup again by reinstalling.

@foosel foosel added not octoprint Issue is not on OctoPrint's end wont fix This will not be worked on labels Oct 12, 2021
@foosel foosel closed this as completed Oct 12, 2021
@OctoPrint OctoPrint locked as resolved and limited conversation to collaborators Oct 12, 2021
@foosel foosel pinned this issue Oct 12, 2021
@foosel foosel changed the title I cannot upgrade, I get something about "ImportError: cannot import Nullhandler" My OctoPrint update fails Oct 13, 2021
@jneilliii jneilliii changed the title My OctoPrint update fails My OctoPrint update fails, AssertionError or ImportError: NullHandler Oct 16, 2021
@GitIssueBot
Copy link

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

https://community.octoprint.org/t/cannot-upgrade-to-1-7-2/38669/2

@GitIssueBot
Copy link

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

https://community.octoprint.org/t/cant-get-gcode-system-command-plugin-to-work-please-help/38671/13

@foosel foosel changed the title My OctoPrint update fails, AssertionError or ImportError: NullHandler My OctoPrint update fails, AssertionError, ImportError: NullHandler and other reasons Mar 14, 2022
@foosel foosel changed the title My OctoPrint update fails, AssertionError, ImportError: NullHandler and other reasons My OctoPrint update fails: "AssertionError", "ImportError: NullHandler", "UnicodeEncodeError: 'latin-1'" and other reasons Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
not octoprint Issue is not on OctoPrint's end wont fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants