There are some error messages when launching JupyterLab which I just installed yesterday (with conda create <$ENVIRONMENT>…), and in which I see “illegal multibyte sequence”, so I am wonder this is related to the Asian language, please advise how to fix it. =
Environment: Windows 11, Chrome browser, JupyterLab.
Thanks in advance.
(finlab) D:\Dropbox\Finlab>jupyter-lab
[I 2023-07-15 22:25:30.903 ServerApp] Package jupyterlab took 0.0000s to import
[I 2023-07-15 22:25:30.918 ServerApp] Package jupyter_server_fileid took 0.0033s to import
[I 2023-07-15 22:25:30.936 ServerApp] Package jupyter_server_terminals took 0.0273s to import
[I 2023-07-15 22:25:30.966 ServerApp] Package jupyter_server_ydoc took 0.0316s to import
[W 2023-07-15 22:25:30.982 ServerApp] jupyterlab_spellchecker | error adding extension (enabled: True): 'cp950' codec can't decode byte 0xc5 in position 509: illegal multibyte sequence
Traceback (most recent call last):
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 319, in add_extension
extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 183, in __init__
self._load_metadata()
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 192, in _load_metadata
self.module, self.metadata = get_metadata(name, logger=self.log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\utils.py", line 72, in get_metadata
module = importlib.import_module(package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\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 "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\__init__.py", line 5, in <module>
from .handlers import setup_handlers
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\handlers.py", line 8, in <module>
from ._version import __version__
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\_version.py", line 20, in <module>
__version__ = _fetchVersion()
^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\_version.py", line 13, in _fetchVersion
return json.load(f)["version"]
^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\json\__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^
UnicodeDecodeError: 'cp950' codec can't decode byte 0xc5 in position 509: illegal multibyte sequence
[I 2023-07-15 22:25:31.110 ServerApp] Package jupytext took 0.0908s to import
[I 2023-07-15 22:25:31.110 ServerApp] Package nbclassic took 0.0000s to import
[W 2023-07-15 22:25:31.110 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-15 22:25:31.110 ServerApp] Package notebook_shim took 0.0000s to import
[W 2023-07-15 22:25:31.110 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-07-15 22:25:31.110 ServerApp] jupyter_server_fileid | extension was successfully linked.
[I 2023-07-15 22:25:31.123 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-07-15 22:25:31.128 ServerApp] jupyter_server_ydoc | extension was successfully linked.
[I 2023-07-15 22:25:31.139 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-07-15 22:25:31.139 ServerApp] jupytext | extension was successfully linked.
[I 2023-07-15 22:25:31.139 ServerApp] nbclassic | extension was successfully linked.
[W 2023-07-15 22:25:31.390 ServerApp] jupyterlab_spellchecker | error adding extension (enabled: True): 'cp950' codec can't decode byte 0xc5 in position 509: illegal multibyte sequence
Traceback (most recent call last):
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 319, in add_extension
extpkg = ExtensionPackage(name=extension_name, enabled=enabled)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 183, in __init__
self._load_metadata()
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\manager.py", line 192, in _load_metadata
self.module, self.metadata = get_metadata(name, logger=self.log)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyter_server\extension\utils.py", line 72, in get_metadata
module = importlib.import_module(package_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\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 "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\__init__.py", line 5, in <module>
from .handlers import setup_handlers
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\handlers.py", line 8, in <module>
from ._version import __version__
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\_version.py", line 20, in <module>
__version__ = _fetchVersion()
^^^^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab_spellchecker\_version.py", line 13, in _fetchVersion
return json.load(f)["version"]
^^^^^^^^^^^^
File "C:\Users\USER\miniconda3\envs\finlab\Lib\json\__init__.py", line 293, in load
return loads(fp.read(),
^^^^^^^^^
UnicodeDecodeError: 'cp950' codec can't decode byte 0xc5 in position 509: illegal multibyte sequence
[I 2023-07-15 22:25:31.390 ServerApp] notebook_shim | extension was successfully linked.
[I 2023-07-15 22:25:31.500 ServerApp] notebook_shim | extension was successfully loaded.
[I 2023-07-15 22:25:31.500 FileIdExtension] Configured File ID manager: ArbitraryFileIdManager
[I 2023-07-15 22:25:31.500 FileIdExtension] ArbitraryFileIdManager : Configured root dir: D:/Dropbox/Finlab
[I 2023-07-15 22:25:31.500 FileIdExtension] ArbitraryFileIdManager : Configured database path: C:\Users\USER\AppData\Roaming\jupyter\file_id_manager.db
[I 2023-07-15 22:25:31.500 FileIdExtension] ArbitraryFileIdManager : Successfully connected to database file.
[I 2023-07-15 22:25:31.500 FileIdExtension] ArbitraryFileIdManager : Creating File ID tables and indices with journal_mode = DELETE
[I 2023-07-15 22:25:31.500 FileIdExtension] Attached event listeners.
[I 2023-07-15 22:25:31.500 ServerApp] jupyter_server_fileid | extension was successfully loaded.
[I 2023-07-15 22:25:31.500 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2023-07-15 22:25:31.500 ServerApp] jupyter_server_ydoc | extension was successfully loaded.
[I 2023-07-15 22:25:31.515 LabApp] JupyterLab extension loaded from C:\Users\USER\miniconda3\envs\finlab\Lib\site-packages\jupyterlab
[I 2023-07-15 22:25:31.515 LabApp] JupyterLab application directory is C:\Users\USER\miniconda3\envs\finlab\share\jupyter\lab
[I 2023-07-15 22:25:31.515 ServerApp] jupyterlab | extension was successfully loaded.
[W 2023-07-15 22:25:31.515 ServerApp] [Jupytext Server Extension] Async contents managers like AsyncLargeFileManager are not supported at the moment (https://github.com/mwouts/jupytext/issues/1020). We will derive a contents manager from LargeFileManager instead.
[I 2023-07-15 22:25:31.515 ServerApp] [Jupytext Server Extension] Deriving a JupytextContentsManager from LargeFileManager
[I 2023-07-15 22:25:31.515 ServerApp] jupytext | extension was successfully loaded.
_ _ _ _
| | | |_ __ __| |__ _| |_ ___
| |_| | '_ \/ _` / _` | _/ -_)
\___/| .__/\__,_\__,_|\__\___|
|_|
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
[I 2023-07-15 22:25:31.515 ServerApp] nbclassic | extension was successfully loaded.
[I 2023-07-15 22:25:31.515 ServerApp] Serving notebooks from local directory: D:\Dropbox\Finlab
[I 2023-07-15 22:25:31.531 ServerApp] Jupyter Server 2.7.0 is running at:
[I 2023-07-15 22:25:31.531 ServerApp] http://localhost:8888/lab?token=844dd3b1366ddbc3f09f68821a343978068d3e8bc2a14d1e
[I 2023-07-15 22:25:31.531 ServerApp] http://127.0.0.1:8888/lab?token=844dd3b1366ddbc3f09f68821a343978068d3e8bc2a14d1e
[I 2023-07-15 22:25:31.531 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2023-07-15 22:25:31.567 ServerApp]
To access the server, open this file in a browser:
file:///C:/Users/USER/AppData/Roaming/jupyter/runtime/jpserver-4948-open.html
Or copy and paste one of these URLs:
http://localhost:8888/lab?token=844dd3b1366ddbc3f09f68821a343978068d3e8bc2a14d1e
http://127.0.0.1:8888/lab?token=844dd3b1366ddbc3f09f68821a343978068d3e8bc2a14d1e
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2023-07-15 22:25:35.274 LabApp] Build is up to date
[W 2023-07-15 22:26:43.968 ServerApp] 404 GET /spellchecker/language_manager?1689431203699 (9fdbb19150354d97895514f37aac0313@::1) 15.01ms referer=http://localhost:8888/lab
[I 2023-07-15 22:26:44.677 ServerApp] Kernel started: e2117ab9-edf8-4ac2-b243-348b0d63a5bf
[I 2023-07-15 22:26:44.689 ServerApp] Kernel started: 306b9095-3a64-4a61-a171-c7b4b2cd348d
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2023-07-15 22:26:45.548 ServerApp] Connecting to kernel e2117ab9-edf8-4ac2-b243-348b0d63a5bf.
[I 2023-07-15 22:26:45.791 ServerApp] Connecting to kernel 306b9095-3a64-4a61-a171-c7b4b2cd348d.
[I 2023-07-15 22:26:45.803 ServerApp] Connecting to kernel 306b9095-3a64-4a61-a171-c7b4b2cd348d.
[I 2023-07-15 22:26:45.812 ServerApp] Connecting to kernel 306b9095-3a64-4a61-a171-c7b4b2cd348d.
[W 2023-07-15 22:26:45.872 ServerApp] Got events for closed stream <zmq.eventloop.zmqstream.ZMQStream object at 0x0000028466C1CB90>
[I 2023-07-15 22:33:17.932 ServerApp] Starting buffering for e2117ab9-edf8-4ac2-b243-348b0d63a5bf:b0e271ad-9670-420a-b788-55450fa7cef1
[I 2023-07-15 22:33:17.933 ServerApp] Starting buffering for 306b9095-3a64-4a61-a171-c7b4b2cd348d:27944fb3-0d01-4adb-b1b7-f65e94215c0a