### Compatibility issues
* #4672
* The below issue
### Describe the soluβ¦tion you'd like
Python 3.11 is currently in alpha, scheduled to be released towards the end of the year. I tested it to see if OctoPrint runs successfully.
There were not as many issues to solve as there was with 3.10, which is good.
The only change I've found so far that needs to happen is for wrapt to be bumped to a newer release (fixing some change to a deprecated API) - 1.14.0.
However... according to the issues over there, the current version of wrapt doesn't work on 3.7 (and maybe others?). It looks like the issues are under control (https://github.com/GrahamDumpleton/wrapt/issues/210) so we will need to wait for a newer release, hopefully soon.
So I created this issue so it was not forgotten π
### Describe alternatives you've considered
π€·
### Additional context
https://github.com/GrahamDumpleton/wrapt/issues/210
https://github.com/GrahamDumpleton/wrapt/issues/196
```
(venv311) PS C:\Users\charl\Development\OctoPrint Core\OctoPrint> pip install -e .
Obtaining file:///C:/Users/charl/Development/OctoPrint%20Core/OctoPrint
Preparing metadata (setup.py) ... done
Requirement already satisfied: OctoPrint-FileCheck>=2021.2.23 in c:\users\charl\development\venv311\lib\site-packages (from OctoPrint==2.0.0.dev1755+gf0ed6ede6) (2021.2.23)
[ removed ]
Collecting wrapt<1.14,>=1.13.3
Using cached wrapt-1.13.3.tar.gz (48 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
Γ python setup.py egg_info did not run successfully.
β exit code: 1
β°β> [92 lines of output]
Traceback (most recent call last):
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 35, in __getattr__
return next(
^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 36, in <genexpr>
ast.literal_eval(statement.value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\ast.py", line 108, in literal_eval
return _convert(node_or_string)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\ast.py", line 107, in _convert
return _convert_signed_num(node)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\ast.py", line 81, in _convert_signed_num
return _convert_num(node)
^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\ast.py", line 72, in _convert_num
_raise_malformed_node(node)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\ast.py", line 69, in _raise_malformed_node
raise ValueError(msg + f': {node!r}')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: malformed node or string on line 2: <ast.Call object at 0x000002A0FA470190>
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 419, in _parse_attr
return getattr(StaticModule(module_name), attr_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 43, in __getattr__
raise AttributeError(
^^^^^^^^^^^^^^^^^^^^^
AttributeError: wrapt has no attribute __version__
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\charl\AppData\Local\Temp\pip-install-x1mo5zr4\wrapt_c71b76722d194d95ac334f241d74ba7f\setup.py", line 41, in <module>
setuptools.setup(
^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\_distutils\core.py", line 122, in setup
dist.parse_config_files()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\dist.py", line 818, in parse_config_files
parse_configuration(
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 158, in parse_configuration
meta.parse()
^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 498, in parse
section_parser_method(section_options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 469, in parse_section
self[name] = value
~~~~^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 222, in __setitem__
value = parser(value)
^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 599, in _parse_version
version = self._parse_attr(value, self.package_dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\contextlib.py", line 155, in __exit__
self.gen.throw(typ, value, traceback)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 55, in patch_path
yield
^^^^^
File "C:\Users\charl\Development\venv311\Lib\site-packages\setuptools\config.py", line 422, in _parse_attr
module = importlib.import_module(module_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Python311\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 924, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "C:\Users\charl\AppData\Local\Temp\pip-install-x1mo5zr4\wrapt_c71b76722d194d95ac334f241d74ba7f\src\wrapt\__init__.py", line 10, in <module>
from .decorators import (adapter_factory, AdapterFactory, decorator,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\charl\AppData\Local\Temp\pip-install-x1mo5zr4\wrapt_c71b76722d194d95ac334f241d74ba7f\src\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)
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Γ Encountered error while generating package metadata.
β°β> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```