Setting up OctoPrint on Windows

Figured it out!

For some reason i was not in the venv environment and the update didn't install correctly.

Once I got that working, and reinstalled OP it worked correctly.

Bill

1 Like

Hi Bill,

I have the same problem as you, but I can't find a solution. Could you please explain in more detail what to do?

Thanks and best
Steff

I just reinstalled Octoprint using: pip install - -no -cache -dir octoprint

I did loose my settings and had top reconfiger each instance for their respective printers and reinstall what ever plugins I had been useing, but it worked.

Hope this helps,
Bill

Thank you very much now it works again!

My server gets stuck on startup on this command line
2022-07-18 14:18:24,472 - octoprint.plugins.tracking - INFO - Sent tracking event startup, payload: {'version': '1.8.1', 'os': 'windows', 'bits': 64, 'python': '3.9.2', 'pip': '22.1.2', 'cores': 4, 'freq': 1900.0, 'ram': 8021889024}
does any know how to fix this

What do you mean by 'stuck'?

Once the server has started up, you must access it in the browser. Have you tried that?

yes I have tried to access the server in the browser and it doesn't load octoprint

I have a question - I would like to access my Octoprint install from this Windows 7 install of Octoprint by hostname resolution and not have to type 192.168.1.my IP. Instead I would like to type the name of the host followed by .local as I was able to do on my nearly completed Bionic Beaver Ubuntu install.

With Winodws, as with Linux, you can do that with the hosts file.

In Windows, it should be in the C:\windows\system32\drivers\etc\ directory (folder).

The format in it is:

192.168.1 myhostname.local

There should be a few examples in it that you can follow.

Just for the record, in Linux the file is usually /etc/hosts

A few weird flavors may put it elsewhere, but that's the main place it's been since I started using Linux in 1992.

im trying to to put octoprint on my comouter but i but whem i put in the py -m venv venv command i get this.

( Error: command ' [ 'C:\OctoPrint\venv\Scripts\python.exe', '-Im', 'ensurepip', '--upgrade', '--default-pip'}' returned non-zero exit status 1.

i followed all the instructions but i cant get past this.

every time when i try instal OctoPrint its show me error

error: subprocess-exited-with-error

├Ś Running setup.py install for netifaces did not run successfully.
Ôöé exit code: 1
ÔĽ░ÔöÇ> [45 lines of output]
C:\OctoPrint\venv\lib\site-packages\setuptools\config\setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
running install
C:\OctoPrint\venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'netifaces' extension
creating build
creating build\temp.win32-cpython-310
creating build\temp.win32-cpython-310\Release
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.11.0 -IC:\OctoPrint\venv\include "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcnetifaces.c /Fobuild\temp.win32-cpython-310\Release\netifaces.obj
netifaces.c
creating C:\Users\u┼żivatel\AppData\Local\Temp\pip-install-7zkoksjp\netifaces_9a96c837123f4a0bafaf34cd33cc49d4\build\lib.win32-cpython-310
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\OctoPrint\venv\libs "/LIBPATH:C:\Program Files\Python310\libs" "/LIBPATH:C:\Program Files\Python310" /LIBPATH:C:\OctoPrint\venv\PCbuild\win32 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x86" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\lib\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x86" ws2_32.lib iphlpapi.lib /EXPORT:PyInit_netifaces build\temp.win32-cpython-310\Release\netifaces.obj /OUT:build\lib.win32-cpython-310\netifaces.cp310-win_amd64.pyd /IMPLIB:build\temp.win32-cpython-310\Release\netifaces.cp310-win_amd64.lib
Vytv ├Ż╦ç se knihovna build\temp.win32-cpython-310\Release\netifaces.cp310-win_amd64.lib a objekt build\temp.win32-cpython-310\Release\netifaces.cp310-win_amd64.exp.
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyModule_AddIntConstant
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyLong_FromLong
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyExc_MemoryError
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyErr_SetFromWindowsErr
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyDict_SetItemString
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyUnicode_FromWideChar
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyErr_SetString
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyExc_ValueError
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyModule_AddStringConstant
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp___Py_FalseStruct
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp___Py_Dealloc
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyModule_AddObject
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyList_New
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyModule_Create2
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyList_Append
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyDict_SetItem
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyDict_New
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyErr_NoMemory
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyDict_GetItemString
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyExc_OSError
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyDict_GetItem
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyObject_IsTrue
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyTuple_Pack
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp___Py_TrueStruct
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyUnicode_FromString
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyObject_Size
netifaces.obj : error LNK2001: Nerozpoznan─Ť extern╦ç symbol __imp__PyArg_ParseTuple
build\lib.win32-cpython-310\netifaces.cp310-win_amd64.pyd : fatal error LNK1120: Po┼║et nerozpoznan─Ťch extern╦çch typÔÇŽ: 27
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x86\link.exe' failed with exit code 1120 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

├Ś Encountered error while trying to install package.
ÔĽ░ÔöÇ> netifaces

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

This its actual great, I need a bot ranch under windows with octoprint first I'm running it on an I3 work area machine in the event that everything goes smooth sick change to a dell server I own, yet how might I make various occasions under windows or debian
Please contact me here; https://community.octoprint.org/t/setting-up-dorado manana-octoprint-on-windows/383
Thanks.

When trying to run the octoprint serve command, I get this output/error:

(venv) C:\OctoPrint>C:\OctoPrint\venv\Scripts\octoprint.exe serve
2022-11-02 01:42:59,003 - octoprint.startup - INFO - ******************************************************************************
2022-11-02 01:42:59,004 - octoprint.startup - INFO - Starting OctoPrint 1.8.6
2022-11-02 01:42:59,004 - octoprint.startup - INFO - ******************************************************************************
2022-11-02 01:42:59,108 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2022-11-02 01:42:59,109 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2022-11-02 01:42:59,109 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2022-11-02 01:42:59,111 - octoprint.plugin.core - INFO - Loading plugins from C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins, C:\Users\boill\AppData\Roaming\OctoPrint\plugins and installed plugin packages...
2022-11-02 01:42:59,297 - octoprint.plugin.core - ERROR - Error loading plugin announcements
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\announcements\__init__.py", line 22, in <module>
    from octoprint.server.util.flask import (
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,309 - octoprint.plugin.core - ERROR - Error loading plugin appkeys
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\appkeys\__init__.py", line 12, in <module>
    from octoprint.server import NO_CONTENT, admin_permission, current_user
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,322 - octoprint.plugin.core - ERROR - Error loading plugin backup
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\backup\__init__.py", line 8, in <module>
    from octoprint.server import NO_CONTENT
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,366 - octoprint.plugin.core - ERROR - Error loading plugin logging
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\logging\__init__.py", line 14, in <module>
    from octoprint.server import NO_CONTENT
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,388 - octoprint.plugin.core - ERROR - Error loading plugin pluginmanager
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\pluginmanager\__init__.py", line 29, in <module>
    from octoprint.server import safe_mode
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,424 - octoprint.plugin.core - ERROR - Error loading plugin softwareupdate
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\softwareupdate\__init__.py", line 24, in <module>
    from octoprint.server import BRANCH, NO_CONTENT, REVISION, VERSION
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:42:59,452 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin (2022.6.13) did not pass check, not loading.
2022-11-02 01:42:59,473 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 15 hook handlers
2022-11-02 01:42:59,486 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\OctoPrint\venv\Scripts\octoprint.exe\__main__.py", line 7, in <module>    sys.exit(main())
             ^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\__init__.py", line 936, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\cli\server.py", line 317, in serve_command
    run_server(
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\cli\server.py", line 145, in run_server
    from octoprint.server import CannotStartServerException, Server
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)

(venv) C:\OctoPrint>C:\OctoPrint\venv\Scripts\octoprint.exe serve
2022-11-02 01:43:11,175 - octoprint.startup - INFO - ******************************************************************************
2022-11-02 01:43:11,176 - octoprint.startup - INFO - Starting OctoPrint 1.8.6
2022-11-02 01:43:11,176 - octoprint.startup - INFO - ******************************************************************************
2022-11-02 01:43:11,279 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2022-11-02 01:43:11,279 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2022-11-02 01:43:11,279 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2022-11-02 01:43:11,281 - octoprint.plugin.core - INFO - Loading plugins from C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins, C:\Users\boill\AppData\Roaming\OctoPrint\plugins and installed plugin packages...
2022-11-02 01:43:11,465 - octoprint.plugin.core - ERROR - Error loading plugin announcements
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\announcements\__init__.py", line 22, in <module>
    from octoprint.server.util.flask import (
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,477 - octoprint.plugin.core - ERROR - Error loading plugin appkeys
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\appkeys\__init__.py", line 12, in <module>
    from octoprint.server import NO_CONTENT, admin_permission, current_user
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,489 - octoprint.plugin.core - ERROR - Error loading plugin backup
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\backup\__init__.py", line 8, in <module>
    from octoprint.server import NO_CONTENT
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,532 - octoprint.plugin.core - ERROR - Error loading plugin logging
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\logging\__init__.py", line 14, in <module>
    from octoprint.server import NO_CONTENT
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec

part 1/2

ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,554 - octoprint.plugin.core - ERROR - Error loading plugin pluginmanager
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\pluginmanager\__init__.py", line 29, in <module>
    from octoprint.server import safe_mode
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,589 - octoprint.plugin.core - ERROR - Error loading plugin softwareupdate
Traceback (most recent call last):
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
    module = _load_module(module_name, spec)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
    return imp.load_module(name, f, filename, details)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
    return load_package(name, filename)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
    return _load(spec)
           ^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 721, in _load
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\plugins\softwareupdate\__init__.py", line 24, in <module>
    from octoprint.server import BRANCH, NO_CONTENT, REVISION, VERSION
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2022-11-02 01:43:11,618 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin (2022.6.13) did not pass check, not loading.
2022-11-02 01:43:11,638 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 15 hook handlers
2022-11-02 01:43:11,651 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\OctoPrint\venv\Scripts\octoprint.exe\__main__.py", line 7, in <module>
    sys.exit(main())
             ^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\__init__.py", line 936, in main
    octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\click\decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\cli\server.py", line 317, in serve_command
    run_server(
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\cli\server.py", line 145, in run_server
    from octoprint.server import CannotStartServerException, Server
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\__init__.py", line 46, in <module>
    from octoprint.server import util
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\__init__.py", line 21, in <module>
    from . import flask, sockjs, tornado, watchdog  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in <module>
    import octoprint.access.users
  File "C:\OctoPrint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in <module>
    import wrapt
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\__init__.py", line 10, in <module>
    from .decorators import (adapter_factory, AdapterFactory, decorator,
  File "C:\OctoPrint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in <module>
    from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)

(venv) C:\OctoPrint>

I am on Windows 11 and I installed Python version 3.11

part 2/2

The guide currently says OctoPrint is not compatible with Python 3.11. Reread it and install a recommended Python version. 3.11 compatibly is coming in the next release.

Thank you. I misread that.

To make updating OctoPrint easier on my Windows computer, I created this .BAT file. I just put the .BAT file on my Windows desktop and double-click it when I need to update. It automatically triggers the User Account Control (UAC) prompt to elevate to admin rights, kills the existing server if it's running, updates, and starts the server back up.

If you have OctoPrint set up to run as a service, the stopping and restarting commands in here probably won't work. I know there are command lines to stop and start services though so you could modify the BAT file replace those parts.

@echo off

REM Trigger UAC for admin rights
cd /D "%~dp0"
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)

cls
echo.
echo.
echo Ready to update the OctoPrint server.
echo.
echo.
echo Press CTRL-C to quit or
pause

REM Kill running server
taskkill /IM octoprint.exe /T /F

REM Perform update
echo.
echo.
echo Updating...
cd C:\Octoprint
call venv\Scripts\activate.bat
pip install --upgrade https://get.OctoPrint.org/latest

REM Restart the server
C:\Octoprint\venv\Scripts\octoprint.exe serve

echo.
echo.
echo.
echo OctoPrint Server update is complete.
pause

I couldn't for the life of me fix this issue.. Most things point at having to install for "all users" which I surely did. Tried multiple versions of Python and reinstallations.

Anyway. A workaround was to install the virtualenv package with pip and then use that to create the virtual environment (pip install virtualenv) and then I went to C:\OctoPrint and ran "C:\Program Files\Python310\Scripts\virtualenv.exe" venv

This is completely new to me, but I am trying to get things going on an old laptop, clean win10 install, all updates done, followed this tutorial to the letter, all successful up until there are some yellow lines about missing pyproject.toml or something, I looked up the github link as suggested, but cannot make heads or tails from this, I know I am probably just missing something, but I have to ask how can I get this to work because the successfull install prompt never appeared and octoprint serve does not start the server, just gives another error and many lines of code...

There are no errors in your screenshot. Just some warnings. It also says 'Successfully installed' there, followed by the list of packages it has installed.

Please share the error you have instead.

My apologies, I didn't add the second screenshot, I rebooted the machine, I ran the serve command again, I'll also put the entire output that it shows which is a very long affair...

(venv) C:\Octoprint>octoprint serve
2023-01-06 21:03:50,615 - octoprint.startup - INFO - ******************************************************************************
2023-01-06 21:03:50,615 - octoprint.startup - INFO - Starting OctoPrint 1.8.6
2023-01-06 21:03:50,615 - octoprint.startup - INFO - ******************************************************************************
2023-01-06 21:03:51,161 - octoprint.util.connectivity.connectivity_checker - INFO - Connectivity state is currently: online
2023-01-06 21:03:51,161 - octoprint.util.connectivity.connectivity_checker - INFO - Connecting to 1.1.1.1:53 is working
2023-01-06 21:03:51,161 - octoprint.util.connectivity.connectivity_checker - INFO - Resolving octoprint.org is working
2023-01-06 21:03:51,177 - octoprint.plugin.core - INFO - Loading plugins from C:\Octoprint\venv\Lib\site-packages\octoprint\plugins, C:\Users\dxthi\AppData\Roaming\OctoPrint\plugins and installed plugin packages...
2023-01-06 21:03:52,146 - octoprint.plugin.core - ERROR - Error loading plugin announcements
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\announcements_init
.py", line 22, in
from octoprint.server.util.flask import (
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,193 - octoprint.plugin.core - ERROR - Error loading plugin appkeys
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\appkeys_init
.py", line 12, in
from octoprint.server import NO_CONTENT, admin_permission, current_user
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,271 - octoprint.plugin.core - ERROR - Error loading plugin backup
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\backup_init
.py", line 8, in
from octoprint.server import NO_CONTENT
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,490 - octoprint.plugin.core - ERROR - Error loading plugin logging
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\logging_init
.py", line 14, in
from octoprint.server import NO_CONTENT
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,615 - octoprint.plugin.core - ERROR - Error loading plugin pluginmanager
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\pluginmanager_init
.py", line 29, in
from octoprint.server import safe_mode
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,755 - octoprint.plugin.core - ERROR - Error loading plugin softwareupdate
Traceback (most recent call last):
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 1274, in _import_plugin
module = _load_module(module_name, spec)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugin\core.py", line 52, in _load_module
return imp.load_module(name, f, filename, details)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 238, in load_module
return load_package(name, filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\vendor\imp.py", line 212, in load_package
return load(spec)
^^^^^^^^^^^
File "", line 721, in load
File "", line 690, in load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Octoprint\venv\Lib\site-packages\octoprint\plugins\softwareupdate_init
.py", line 24, in
from octoprint.server import BRANCH, NO_CONTENT, REVISION, VERSION
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)
2023-01-06 21:03:52,911 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin (2022.6.13) did not pass check, not loading.
2023-01-06 21:03:53,036 - octoprint.plugin.core - INFO - Found 11 plugin(s) providing 11 mixin implementations, 15 hook handlers
2023-01-06 21:03:53,099 - octoprint.cli.server - ERROR - Uncaught exception
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Octoprint\venv\Scripts\octoprint.exe_main
.py", line 7, in
sys.exit(main())
^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint_init
.py", line 936, in main
octo(args=args, prog_name="octoprint", auto_envvar_prefix="OCTOPRINT")
File "C:\Octoprint\venv\Lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\click\core.py", line 1657, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\click\core.py", line 760, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\click\decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\cli\server.py", line 317, in serve_command
run_server(
File "C:\Octoprint\venv\Lib\site-packages\octoprint\cli\server.py", line 145, in run_server
from octoprint.server import CannotStartServerException, Server
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server_init
.py", line 46, in
from octoprint.server import util
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util_init
.py", line 21, in
from . import flask, sockjs, tornado, watchdog # noqa: F401
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Octoprint\venv\Lib\site-packages\octoprint\server\util\flask.py", line 34, in
import octoprint.access.users
File "C:\Octoprint\venv\Lib\site-packages\octoprint\access\users.py", line 11, in
import wrapt
File "C:\Octoprint\venv\Lib\site-packages\wrapt_init
.py", line 10, in
from .decorators import (adapter_factory, AdapterFactory, decorator,
File "C:\Octoprint\venv\Lib\site-packages\wrapt\decorators.py", line 34, in
from inspect import ismethod, isclass, formatargspec
ImportError: cannot import name 'formatargspec' from 'inspect' (C:\Program Files\Python311\Lib\inspect.py)

(venv) C:\Octoprint>