Octoprint 1.8.6 startup fails on Python 3.11 re formatargspec

octoprint Version 1.8.6 is not yet compatible with python 3.11 and fails on startup

  • ImportError: cannot import name 'formatargspec' from 'inspect' (/usr/lib64/python3.11/inspect.py)

A quick web search yielded:

  • DeprecationWarning: formatargspec is deprecated since Python 3.5. Use signature and the Signature object directly

Fedora 37 just shipped with python 3.11 as the default implementation. I was able to install python 3.10 in parallel with the new version and get my octoprint running again.

octoprint-systeminfo-20221116145152.zip (17.9 KB)

Python 3.11 is still not supported by OctoPrint.

Also see this:

From the readme, OctoPrint is not compatible with 3.11. The next version, 1.9.0 has all of the required fixes in it to work on 3.11. Since 3.11 was only released a few weeks ago you will have to wait for compatibility to be added.

GitHub - OctoPrint/OctoPrint: OctoPrint is the snappy web interface for your 3D printer!

1 Like

Glad to hear 1.9 is already planning to support python 3.11 . I am running fine with 3.10 on Fedora 37, but wanted to report the issue.

It's no issue...