天问 commented 11 months ago
```
[W 2024-02-01 20:42:15.875 ServerApp] jupyter_server_terminals | error adding extension (enabled: True): Jupyter Server Terminals requires Jupyter Server 2.0+
Traceback (most recent call last):
File "D:\Program-Files\Anaconda3\Lib\site-packages\jupyter_server\extension\manager.py", line 320, in add_extension
extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\site-packages\jupyter_server\extension\manager.py", line 166, in __init__
super().__init__(*args, **kwargs)
File "D:\Program-Files\Anaconda3\Lib\site-packages\traitlets\traitlets.py", line 1357, in __init__
value = self._traits[key]._cross_validate(self, getattr(self, key))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\site-packages\traitlets\traitlets.py", line 743, in _cross_validate
value = obj._trait_validators[self.name](obj, proposal)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\site-packages\traitlets\traitlets.py", line 1229, in __call__
return self.func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\site-packages\jupyter_server\extension\manager.py", line 175, in _validate_name
self._module, self._metadata = get_metadata(name)
^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\site-packages\jupyter_server\extension\utils.py", line 55, in get_metadata
module = importlib.import_module(package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Program-Files\Anaconda3\Lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
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 "D:\Program-Files\Anaconda3\Lib\site-packages\jupyter_server_terminals\__init__.py", line 9, in <module>
raise RuntimeError("Jupyter Server Terminals requires Jupyter Server 2.0+")
RuntimeError: Jupyter Server Terminals requires Jupyter Server 2.0+
```