An error occurred when installing
See original GitHub issueA UnicodeDecodeError occurred when installing with the following command:
$ jupyter labextension install "@krassowski/jupyterlab-lsp"
Building jupyterlab assets
/Exception in thread Thread-2:
Traceback (most recent call last):
File "c:\users\****\anaconda3\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "c:\users\****\anaconda3\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "c:\users\****\anaconda3\lib\subprocess.py", line 1238, in _readerthread
buffer.append(fh.read())
UnicodeDecodeError: 'cp932' codec can't decode byte 0xef in position 7095: illegal multibyte sequence
Environment
- OS: Windows 7(Japanese)
- jupyterlab==1.0.2
- conda-forge/win-64::conda-package-handling-1.4.1-py37_0
- conda-forge/win-64::nodejs-12.8.1-0
- conda-4.7.11-py37_0
- Python 3.7.3
Notes
cp932
is used in the standard output of Japanese Windows computers (mainly command prompt, like anaconda prompt). So probably this error will not be occurred English environment or other OS, like Ubuntu.- This error happen both on the command line and JupyterLab’s Extension Manager.
Temporary solution
When I use --debug
argument to inspect, then build completed successfully (probably the change of the standard output contents during the build seems to solve this problem).
$ jupyter labextension install "@krassowski/jupyterlab-lsp" --debug
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >Fix “Unable to Install Update” Error for iOS & iPadOS - OSXDaily
This “Unable to Install Update. An Error Occurred” failure and error can happen with basically any iOS or iPadOS version so it's not...
Read more >Fix: A Fatal Error Occurred during Installation - Appuals.com
This error usually occurs when you are already trying to install an application which is already installed. Or the folder where you are...
Read more >How to Fix an Error Occurred Installing iOS 16 [7 Ways] - iMobie
How to Fix An Error Occurred Installing iOS 16 · Tip 1. Check If Device Supports iOS 16 · Tip 2. Turn of...
Read more >How to Fix the “An Error Occurred Installing iOS 15” Issue?
Solution 1: Check If Your Device Supports iOS 15. Why does an error occurred when installing iOS 15? If your device is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@krassowski
Yes, extension worked well (amazing works!!).
Wow… although they were not implemented yesterday, but I was surprised that they were already implemented today!
Because I had been looking alternative of Hinterland for a long time, I’m very happy to finally find an extension that could alternate it.
Additional information (maybe trivial)
About the node.js installation instructions
The following error occurred during the initial installation:
Therefore, I downloaded node.js from the official website and installed it.
However, as a result, the installation failed with the following error:
So, I installed node.js via conda command, as followed, and installation of extension was succeeded:
ref: ValueError: “@jupyter-widgets/jupyterlab-manager” is not a valid npm package
It maybe helpful if node.js and conda commands etc. are explained in
Prerequisites
of README.Pyflakes seems to be an error even in the command execution cell
(very trivial proposal)
It seems that code cells using the
!
symbol are also checked.If possible, it may be preferable to ignore like magic command cells (e.g.,
%matplotlib inline
).My impression is that it’s a great extension! 😄
Perhaps I’ll introduce this extension at tech blog.
Thx.
Thanks for the feedback! The lines starting with
!
symbol are now excluded from linting in Python notebooks (totally forgot about it thanks for letting me know) - in just released 0.4.0 version.Re developement speed: I need all this features too! 😉